KrisLibrary
1.0.0
|
A class that allows incremental plane-splitting of a triangle mesh. More...
#include <Meshing.h>
Public Member Functions | |
TriSplitter (TriMeshWithTopology &mesh) | |
void | Split (const Plane3D &p) |
Public Attributes | |
TriMeshWithTopology & | mesh |
vector< bool > | positive |
vector< int > | origTri |
Real | tol |
bool | deleteNegative |
vector< Real > | d |
vector< vector< pair< int, int > > > | newVerts |
A class that allows incremental plane-splitting of a triangle mesh.
positive[i] is set to true if tri[i] is on the positive side of the planes (up to the tolerance tol). If deleteNegative is true, the triangles on the negative side of any plane are deleted.
origTri stores an index for each triangle of the resulting mesh, indexing the triangle in the mesh originally provided in the constructor.