Blender V2.61 - r43446
|
#include <BOP_Mesh.h>
Definition at line 55 of file BOP_Mesh.h.
BOP_Mesh::BOP_Mesh | ( | ) |
Definition at line 43 of file BOP_Mesh.cpp.
BOP_Mesh::~BOP_Mesh | ( | ) |
Destroys a mesh.
Definition at line 57 of file BOP_Mesh.cpp.
References BLI_freelistN(), hash, MEM_freeN(), and NULL.
Adds a new face.
face | mesh face |
Definition at line 234 of file BOP_Mesh.cpp.
References BOP_Face::size().
Referenced by BOP_addFace(), BOP_addMesh(), and clean_nonmanifold().
Adds a new quad.
face | mesh quad |
Definition at line 294 of file BOP_Mesh.cpp.
References BOP_Vertex::addEdge(), BOP_Edge::addFace(), BROKEN, getIndexEdge(), BOP_Face::getVertex(), getVertex(), and BOP_Face::setTAG().
Adds a new triangle.
face | mesh triangle |
Definition at line 247 of file BOP_Mesh.cpp.
References BOP_Vertex::addEdge(), BOP_Edge::addFace(), BROKEN, getIndexEdge(), BOP_Face::getVertex(), getVertex(), and BOP_Face::setTAG().
Adds a new vertex.
p | vertex point |
Definition at line 92 of file BOP_Mesh.cpp.
Referenced by BOP_addMesh(), and BOP_getVertexIndex().
Returns the mesh edge on the specified face and relative edge index.
face | mesh face |
edge | face relative edge index |
Definition at line 490 of file BOP_Mesh.cpp.
References BOP_Face::size().
Returns the mesh edge on the specified triangle and relative edge index.
face | mesh triangle |
edge | face relative edge index |
Definition at line 504 of file BOP_Mesh.cpp.
References BOP_Face::getVertex(), and NULL.
Returns the mesh edge on the specified quad and relative edge index.
face | mesh quad |
edge | face relative edge index |
Definition at line 524 of file BOP_Mesh.cpp.
References BOP_Face::getVertex(), and NULL.
Returns the mesh edge with the specified vertex indexs.
v1 | vertex index |
v2 | vertex index |
Definition at line 384 of file BOP_Mesh.cpp.
References HASH, hash, EdgeEntry::next, NULL, and EdgeEntry::v1.
Returns the mesh edge with the specified index.
i | edge index |
Definition at line 622 of file BOP_Mesh.cpp.
References i.
BOP_Edges & BOP_Mesh::getEdges | ( | ) |
Returns the edges set of this mesh.
Definition at line 593 of file BOP_Mesh.cpp.
Referenced by clean_nonmanifold().
Returns the mesh face with the specified vertex indexs.
v1 | vertex index |
v2 | vertex index |
v3 | vertex index |
Definition at line 547 of file BOP_Mesh.cpp.
References NULL.
Returns the mesh face with the specified index.
i | face index |
Definition at line 632 of file BOP_Mesh.cpp.
References i.
Referenced by BOP_getOppositeFace(), BOP_mergeVertexs(), clean_nonmanifold(), and deleteFace().
BOP_Faces & BOP_Mesh::getFaces | ( | ) |
Returns the faces set of this mesh.
Definition at line 602 of file BOP_Mesh.cpp.
Referenced by BOP_exportMesh(), deleteFace(), and removeBrokenFaces().
Returns the mesh edge index with the specified vertex indexs.
v1 | vertex index |
v2 | vertex index |
e | edge index with the specified vertex indexs |
Definition at line 426 of file BOP_Mesh.cpp.
References credits_svn_gen::e, HASH, hash, EdgeEntry::next, and EdgeEntry::v1.
Referenced by addFace().
Returns the mesh face index with the specified vertex indexs.
v1 | vertex index |
v2 | vertex index |
v3 | vertex index |
f | face index with the specified vertex indexs |
Definition at line 566 of file BOP_Mesh.cpp.
unsigned int BOP_Mesh::getNumEdges | ( | ) |
Returns the number of edges of this mesh.
Definition at line 650 of file BOP_Mesh.cpp.
unsigned int BOP_Mesh::getNumFaces | ( | ) |
Returns the number of faces of this mesh.
Definition at line 659 of file BOP_Mesh.cpp.
Referenced by BOP_intersectCoplanarFaces(), BOP_intersectNonCoplanarFaces(), and BOP_mergeVertexs().
unsigned int BOP_Mesh::getNumFaces | ( | BOP_TAG | tag | ) |
Returns the number of faces of this mesh with the specified tag.
Definition at line 681 of file BOP_Mesh.cpp.
unsigned int BOP_Mesh::getNumVertexs | ( | ) |
Returns the number of vertices of this mesh.
Definition at line 641 of file BOP_Mesh.cpp.
Referenced by BOP_addMesh(), and BOP_intersectionBoolOp().
unsigned int BOP_Mesh::getNumVertexs | ( | BOP_TAG | tag | ) |
Returns the number of vertices of this mesh with the specified tag.
Definition at line 668 of file BOP_Mesh.cpp.
BOP_Vertex * BOP_Mesh::getVertex | ( | BOP_Index | i | ) |
Returns the mesh vertex with the specified index.
i | vertex index |
Definition at line 612 of file BOP_Mesh.cpp.
References i.
Referenced by addFace(), BOP_BSPTree::addFace(), BOP_createFace3(), BOP_exportMesh(), BOP_Face2Face(), BOP_getNearestVertex(), BOP_getPoints(), BOP_intersectCoplanarFaces(), BOP_isInsideCircle(), BOP_mergeVertexs(), BOP_meshClassify(), BOP_meshFilter(), BOP_removeOverlappedFaces(), BOP_sew(), BOP_simplifiedMeshFilter(), BOP_splitEdge(), BOP_splitFace(), BOP_splitQuad(), clean_nonmanifold(), and deleteFace().
BOP_Vertexs & BOP_Mesh::getVertexs | ( | ) |
Returns the vertices set of this mesh.
Definition at line 584 of file BOP_Mesh.cpp.
Referenced by BOP_exportMesh().
bool BOP_Mesh::isClosedMesh | ( | ) |
Definition at line 789 of file BOP_Mesh.cpp.
References BROKEN, BOP_Edge::getFaces(), and i.
Referenced by BOP_performBooleanOperation().
void BOP_Mesh::print | ( | ) |
void BOP_Mesh::printFace | ( | BOP_Face * | face, |
int | col = 0 |
||
) |
void BOP_Mesh::printFormat | ( | ) |
void BOP_Mesh::printFormat | ( | BOP_Faces * | faces | ) |
Replaces a vertex index.
oldIndex | old vertex index |
newIndex | new vertex index |
Definition at line 713 of file BOP_Mesh.cpp.
References BOP_Vertex::addEdge(), BOP_Edge::addFace(), BROKEN, BOP_Vertex::getEdges(), BOP_Edge::getFaces(), BOP_Edge::getVertex1(), BOP_Edge::getVertex2(), NULL, removeBrokenFaces(), BOP_Vertex::removeEdge(), BOP_Edge::replaceVertexIndex(), and BOP_Vertex::setTAG().
Referenced by BOP_getVertexIndex().
void BOP_Mesh::saveFormat | ( | BOP_Faces * | faces, |
char * | filename | ||
) |
void BOP_Mesh::testMesh | ( | ) |
Referenced by BOP_intersectionBoolOp().
void BOP_Mesh::testPlane | ( | BOP_Face * | face | ) |
void BOP_Mesh::updatePlanes | ( | ) |