KrisLibrary  1.0.0
Public Member Functions | Public Attributes | List of all members
Meshing::TriSplitter Struct Reference

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

TriMeshWithTopologymesh
 
vector< bool > positive
 
vector< int > origTri
 
Real tol
 
bool deleteNegative
 
vector< Real > d
 
vector< vector< pair< int, int > > > newVerts
 

Detailed Description

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.


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