Blender V2.61 - r43446
Classes | Typedefs | Functions

BKE_booleanops_mesh.h File Reference

#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)

Detailed Description

Definition in file BKE_booleanops_mesh.h.


Typedef Documentation

typedef void(* CSG_DestroyMeshFunc)(struct CSG_MeshDescriptor *)

Definition at line 45 of file BKE_booleanops_mesh.h.


Function Documentation

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.

int NewBooleanMeshTest ( struct Base base,
struct Base base_select,
int  op_type 
)

Test functionality.