Builder class for a triangle surface mesh based on a list of facets and vertices. More...
#include <MatlabPolyhedron.h>
Public Member Functions | |
polyhedron_builder (std::vector< double > &_coords, std::vector< int > &_tris) | |
Construct a polyhedron builder class from a series of vertex coordinates and a series of triangle facets. More... | |
void | operator() (HDS &hds) |
Perform the construction of the triangle surface mesh. | |
Builder class for a triangle surface mesh based on a list of facets and vertices.
|
inline |
Construct a polyhedron builder class from a series of vertex coordinates and a series of triangle facets.
_coords | Vector of concatenated vertex coordinates |
_tris | Vector of concatenated facet indices |
The coordinates are concatenated as /f$x_0,y_0,z_0,x_1,...$/f. The facet indices are concatenation of integer triplets linking 3 vertices together to form a facet.