This class is used convert between polygonal meshes and triangular meshes. More...
#include <vcg/complex/trimesh/polygon_support.h>
Static Public Member Functions | |
static void | ExtractPolygon (typename TriMeshType::FacePointer tfi, std::vector< typename TriMeshType::VertexPointer > &vs) |
static void | ImportFromPolyMesh (TriMeshType &tm, PolyMeshType &pm) |
static void | ImportFromTriMesh (PolyMeshType &pm, TriMeshType &tm) |
This class is used convert between polygonal meshes and triangular meshes.
This class contains two members that allow to build a triangular mesh from a polygonal mesh and viceversa. In a trimesh, the generic polygons with n sides are codified represented by tagging the internal edge of the face with the SetF.
Definition at line 48 of file polygon_support.h.
static void vcg::tri::PolygonSupport< TriMeshType, PolyMeshType >::ExtractPolygon | ( | typename TriMeshType::FacePointer | tfi, | |
std::vector< typename TriMeshType::VertexPointer > & | vs | |||
) | [inline, static] |
Definition at line 145 of file polygon_support.h.
static void vcg::tri::PolygonSupport< TriMeshType, PolyMeshType >::ImportFromPolyMesh | ( | TriMeshType & | tm, | |
PolyMeshType & | pm | |||
) | [inline, static] |
Import a trianglemesh from a polygon mesh
Definition at line 53 of file polygon_support.h.
static void vcg::tri::PolygonSupport< TriMeshType, PolyMeshType >::ImportFromTriMesh | ( | PolyMeshType & | pm, | |
TriMeshType & | tm | |||
) | [inline, static] |
Import a polygon mesh from a triangle mesh
Definition at line 94 of file polygon_support.h.