Choreonoid  1.8
Public Member Functions | List of all members
cnoid::Triangulator< TVector3Array > Class Template Reference

#include <Triangulator.h>

Public Member Functions

void setVertices (const TVector3Array &vertices)
 
int apply (const std::vector< int > &polygon)
 
const std::vector< int > & triangles ()
 

Member Function Documentation

◆ apply()

template<class TVector3Array >
int cnoid::Triangulator< TVector3Array >::apply ( const std::vector< int > &  polygon)
inline
Returns
The number of triangles

◆ setVertices()

template<class TVector3Array >
void cnoid::Triangulator< TVector3Array >::setVertices ( const TVector3Array &  vertices)
inline

◆ triangles()

template<class TVector3Array >
const std::vector<int>& cnoid::Triangulator< TVector3Array >::triangles ( )
inline

Triangulated indices. This value is available after calling the 'apply' method. The indices are local ones in the polygon index vector given to the apply method.


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