Blender  V2.59
Public Member Functions | Static Public Member Functions
BSP_CSGMesh Class Reference

#include <BSP_CSGMesh.h>

Inheritance diagram for BSP_CSGMesh:
Inheritance graph
[legend]

List of all members.

Public Member Functions

bool SetVertices (std::vector< BSP_MVertex > *verts)
void AddPolygon (const int *verts, int num_verts)
void AddPolygon (const BSP_MFace &face)
bool BuildEdges ()
void DestroyEdges ()
BSP_CSGMeshNewCopy () const
void Invert ()
std::vector< BSP_MVertex > & VertexSet () const
std::vector< BSP_MFace > & FaceSet () const
std::vector< BSP_MEdge > & EdgeSet () const
 ~BSP_CSGMesh ()
void FaceVertices (const BSP_FaceInd &f, std::vector< BSP_VertexInd > &output)
void FaceEdges (const BSP_FaceInd &f, std::vector< BSP_EdgeInd > &output)
void EdgeVertices (const BSP_EdgeInd &e, std::vector< BSP_VertexInd > &output)
void EdgeFaces (const BSP_EdgeInd &e, std::vector< BSP_FaceInd > &output)
void VertexEdges (const BSP_VertexInd &v, std::vector< BSP_EdgeInd > &output)
void VertexFaces (const BSP_VertexInd &v, std::vector< BSP_FaceInd > &output)
BSP_EdgeInd FindEdge (const BSP_VertexInd &v1, const BSP_VertexInd &v2) const
bool SC_Face (BSP_FaceInd f)
MT_Plane3 FacePlane (const BSP_FaceInd &fi) const
void ComputeFacePlanes ()
int CountTriangles () const

Static Public Member Functions

static BSP_CSGMeshNew ()

Detailed Description

Definition at line 46 of file BSP_CSGMesh.h.


Constructor & Destructor Documentation

BSP_CSGMesh::~BSP_CSGMesh ( )

Definition at line 350 of file BSP_CSGMesh.cpp.

References NULL.


Member Function Documentation

void BSP_CSGMesh::AddPolygon ( const int *  verts,
int  num_verts 
)

Definition at line 138 of file BSP_CSGMesh.cpp.

References copy(), FacePlane(), BSP_MFace::m_plane, BSP_MFace::m_verts, MT_assert, and NULL.

void BSP_CSGMesh::AddPolygon ( const BSP_MFace face)

Definition at line 165 of file BSP_CSGMesh.cpp.

bool BSP_CSGMesh::BuildEdges ( )

Definition at line 174 of file BSP_CSGMesh.cpp.

References DestroyEdges(), FaceSet(), BSP_MFace::m_verts, and NULL.

Referenced by BOP_exportMesh().

void BSP_CSGMesh::ComputeFacePlanes ( )

Recompute Face plane equations. essential if you have been messing with the object.

Definition at line 625 of file BSP_CSGMesh.cpp.

References FacePlane(), FaceSet(), and i.

int BSP_CSGMesh::CountTriangles ( ) const

Count the number of trinagles in the mesh. This is not the same as the number of polygons.

Definition at line 639 of file BSP_CSGMesh.cpp.

References FaceSet(), and sum().

void BSP_CSGMesh::DestroyEdges ( )

Definition at line 220 of file BSP_CSGMesh.cpp.

References NULL, and VertexSet().

Referenced by BuildEdges().

void BSP_CSGMesh::EdgeFaces ( const BSP_EdgeInd e,
std::vector< BSP_FaceInd > &  output 
)
vector< BSP_MEdge > & BSP_CSGMesh::EdgeSet ( ) const
void BSP_CSGMesh::EdgeVertices ( const BSP_EdgeInd e,
std::vector< BSP_VertexInd > &  output 
)
void BSP_CSGMesh::FaceEdges ( const BSP_FaceInd f,
std::vector< BSP_EdgeInd > &  output 
)

Referenced by SC_Face().

MT_Plane3 BSP_CSGMesh::FacePlane ( const BSP_FaceInd fi) const

Return the face plane equation

Definition at line 591 of file BSP_CSGMesh.cpp.

References MT_Vector3::cross(), FaceSet(), i, MT_Vector3::length(), length(), BSP_MFace::m_verts, MT_fuzzyZero(), and VertexSet().

Referenced by AddPolygon(), ComputeFacePlanes(), and SC_Face().

vector< BSP_MFace > & BSP_CSGMesh::FaceSet ( ) const
void BSP_CSGMesh::FaceVertices ( const BSP_FaceInd f,
std::vector< BSP_VertexInd > &  output 
)

Referenced by SC_Face().

BSP_EdgeInd BSP_CSGMesh::FindEdge ( const BSP_VertexInd v1,
const BSP_VertexInd v2 
) const
void BSP_CSGMesh::Invert ( )

Definition at line 105 of file BSP_CSGMesh.cpp.

References FaceSet().

BSP_CSGMesh * BSP_CSGMesh::New ( ) [static]

Definition at line 61 of file BSP_CSGMesh.cpp.

Referenced by BOP_newEmptyMesh(), and NewCopy().

BSP_CSGMesh * BSP_CSGMesh::NewCopy ( ) const

Definition at line 68 of file BSP_CSGMesh.cpp.

References New(), and NULL.

bool BSP_CSGMesh::SC_Face ( BSP_FaceInd  f)
bool BSP_CSGMesh::SetVertices ( std::vector< BSP_MVertex > *  verts)

Referenced by BOP_newEmptyMesh().

void BSP_CSGMesh::VertexEdges ( const BSP_VertexInd v,
std::vector< BSP_EdgeInd > &  output 
)

Referenced by LOD_ManMesh2::FaceEdges().

void BSP_CSGMesh::VertexFaces ( const BSP_VertexInd v,
std::vector< BSP_FaceInd > &  output 
)
vector< BSP_MVertex > & BSP_CSGMesh::VertexSet ( ) const

The documentation for this class was generated from the following files: