MSDM
 All Classes Namespaces Files Functions Variables Typedefs Pages
Public Member Functions | List of all members
Utils::polyhedron_builder< HDS > Class Template Reference

Builder class for a triangle surface mesh based on a list of facets and vertices. More...

#include <MatlabPolyhedron.h>

Inheritance diagram for Utils::polyhedron_builder< HDS >:

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.
 

Detailed Description

template<class HDS>
class Utils::polyhedron_builder< HDS >

Builder class for a triangle surface mesh based on a list of facets and vertices.

Constructor & Destructor Documentation

template<class HDS >
Utils::polyhedron_builder< HDS >::polyhedron_builder ( std::vector< double > &  _coords,
std::vector< int > &  _tris 
)
inline

Construct a polyhedron builder class from a series of vertex coordinates and a series of triangle facets.

Parameters
_coordsVector of concatenated vertex coordinates
_trisVector 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.


The documentation for this class was generated from the following file: