class to make a triangle mesh from a closed polygon More...
#include <mia/mesh/triangulate.hh>
Public Member Functions | |
TPolyTriangulator (const VertexVector &vv) | |
template<class TriangleList > | |
bool | triangulate (TriangleList &output, const Polygon &poly) const |
class to make a triangle mesh from a closed polygon
This class is used to convert a closed polygon into a mesh defined by triangles.
VertexVector | type of the vector that contains the vertices |
Polygon | The type of the Polygon |
Definition at line 38 of file triangulate.hh.
TPolyTriangulator< VertexVector, Polygon >::TPolyTriangulator | ( | const VertexVector & | vv | ) |
Constructor to be initializes with a vector of vertices that used when defining the polygon
vv | the vertices |
Definition at line 79 of file triangulate.hh.
bool TPolyTriangulator< VertexVector, Polygon >::triangulate | ( | TriangleList & | output, |
const Polygon & | poly | ||
) | const |
Evaluate the triangulation of the polygon that is defined by the vertices given above and their ordering by indices as given in poly.
[out] | output | the list of triangles as list of index triples into the vertex arrey given in the constructor |
[in] | poly | the index array into the vertex array describing the polygon |
Definition at line 87 of file triangulate.hh.
References clist< T >::begin(), cross(), cvdebug(), gsl::dot(), clist< T >::end(), NS_MIA_END, clist< T >::node::prev, clist< T >::push_back(), clist< T >::remove(), and clist< T >::node::succ.