Blender V2.61 - r43446
Typedefs | Enumerations | Functions

BOP_Interface.h File Reference

#include "../../bsp/intern/BSP_CSGMesh.h"

Go to the source code of this file.

Typedefs

typedef enum EnumBoolOpState BoolOpState
typedef enum EnumBoolOpType BoolOpType

Enumerations

enum  EnumBoolOpState { BOP_OK, BOP_NO_SOLID, BOP_ERROR }
enum  EnumBoolOpType { BOP_INTERSECTION = e_csg_intersection, BOP_UNION = e_csg_union, BOP_DIFFERENCE = e_csg_difference }

Functions

BoolOpState BOP_performBooleanOperation (BoolOpType opType, BSP_CSGMesh **outputMesh, CSG_FaceIteratorDescriptor obAFaces, CSG_VertexIteratorDescriptor obAVertices, CSG_FaceIteratorDescriptor obBFaces, CSG_VertexIteratorDescriptor obBVertices)

Detailed Description

Definition in file BOP_Interface.h.


Typedef Documentation

typedef enum EnumBoolOpType BoolOpType

Enumeration Type Documentation

Enumerator:
BOP_OK 
BOP_NO_SOLID 
BOP_ERROR 

Definition at line 37 of file BOP_Interface.h.

Enumerator:
BOP_INTERSECTION 
BOP_UNION 
BOP_DIFFERENCE 

Definition at line 38 of file BOP_Interface.h.


Function Documentation

BoolOpState BOP_performBooleanOperation ( BoolOpType  opType,
BSP_CSGMesh **  outputMesh,
CSG_FaceIteratorDescriptor  obAFaces,
CSG_VertexIteratorDescriptor  obAVertices,
CSG_FaceIteratorDescriptor  obBFaces,
CSG_VertexIteratorDescriptor  obBVertices 
)

Performs a generic booleam operation, the entry point for external modules.

Parameters:
opTypeBoolean operation type BOP_INTERSECTION, BOP_UNION, BOP_DIFFERENCE
outputMeshOutput mesh, the final result (the object C)
obAFacesObject A faces list
obAVerticesObject A vertices list
obBFacesObject B faces list
obBVerticesObject B vertices list
interpFuncInterpolating function
Returns:
operation state: BOP_OK, BOP_NO_SOLID, BOP_ERROR

Definition at line 332 of file BOP_CarveInterface.cpp.

References BOP_addMesh(), BOP_DIFFERENCE, BOP_ERROR, BOP_exportMesh(), BOP_INTERSECTION, BOP_intersectionBoolOp(), BOP_NO_SOLID, BOP_OK, BOP_UNION, Carve_addMesh(), Carve_exportMesh(), i, BOP_Mesh::isClosedMesh(), left(), MAX, max, MIN, min, and NULL.

Referenced by CSG_PerformBooleanOperation().