Blender V2.61 - r43446
|
#include "CSG_BooleanOps.h"
Go to the source code of this file.
Classes | |
struct | CSG_MeshDescriptor |
Typedefs | |
typedef void(* | CSG_DestroyMeshFunc )(struct CSG_MeshDescriptor *) |
typedef struct CSG_MeshDescriptor | CSG_MeshDescriptor |
Functions | |
int | CSG_LoadBlenderMesh (struct Object *obj, CSG_MeshDescriptor *output) |
void | CSG_DestroyMeshDescriptor (CSG_MeshDescriptor *mesh) |
int | CSG_PerformOp (CSG_MeshDescriptor *mesh1, CSG_MeshDescriptor *mesh2, int op_type, CSG_MeshDescriptor *output) |
int | CSG_AddMeshToBlender (CSG_MeshDescriptor *mesh) |
int | NewBooleanMeshTest (struct Base *base, struct Base *base_select, int op_type) |
Definition in file BKE_booleanops_mesh.h.
typedef void(* CSG_DestroyMeshFunc)(struct CSG_MeshDescriptor *) |
Definition at line 45 of file BKE_booleanops_mesh.h.
typedef struct CSG_MeshDescriptor CSG_MeshDescriptor |
int CSG_AddMeshToBlender | ( | CSG_MeshDescriptor * | mesh | ) |
Add a mesh to blender as a new object.
void CSG_DestroyMeshDescriptor | ( | CSG_MeshDescriptor * | mesh | ) |
Destroy the contents of a mesh descriptor. If the internal descriptor refers to a blender mesh, no action is performed apart from freeing internal memory in the desriptor.
int CSG_LoadBlenderMesh | ( | struct Object * | obj, |
CSG_MeshDescriptor * | output | ||
) |
int CSG_PerformOp | ( | CSG_MeshDescriptor * | mesh1, |
CSG_MeshDescriptor * | mesh2, | ||
int | op_type, | ||
CSG_MeshDescriptor * | output | ||
) |
Perform a boolean operation between 2 meshes and return the result as a new mesh descriptor. op_type is an integer code of the boolean operation type. 1 = intersection, 2 = union, 3 = difference.