SimpleFastOpenAtomicVisualiser
|
A refineable mesh of triangles. More...
#include <hierarchicalTriangularMesh.h>
Public Member Functions | |
HierarchicalTriangularMesh (BASE_MESH mesh) | |
Construct a new Hierarchical Triangular Mesh from a library base. | |
HierarchicalTriangularMesh (const std::vector< Trixel< T > > &baseMesh) | |
Construct a new Hierarchical Triangular Mesh from a user base mesh. | |
uint32_t | size () const |
Get the number of refinements. | |
uint32_t | triangles () const |
Get the number of triangles at the largest refinement. | |
void | build (uint32_t depth=0) |
Refine the mesh to a give depth. | |
std::vector< Trixel< T > > | leaves () const |
The triangulation at the current refinement. | |
std::vector< T > | vertices () const |
Get the vertices of the mesh. | |
std::vector< T > | vertexNormals () const |
Get the normal vectors for each triangle. | |
A refineable mesh of triangles.
T | numeric type. |
|
inline |
Construct a new Hierarchical Triangular Mesh from a library base.
mesh | either a specific base or any. |
|
inline |
Construct a new Hierarchical Triangular Mesh from a user base mesh.
baseMesh | a user supplied triangulation. |
Refine the mesh to a give depth.
depth | depth of refinement. |
|
inline |
The triangulation at the current refinement.
|
inline |
Get the number of refinements.
|
inline |
Get the number of triangles at the largest refinement.
|
inline |
Get the normal vectors for each triangle.
|
inline |
Get the vertices of the mesh.