vcg::tri::PolygonSupport< TriMeshType, PolyMeshType > Struct Template Reference
[Trimesh]

This class is used convert between polygonal meshes and triangular meshes. More...

#include <vcg/complex/trimesh/polygon_support.h>

List of all members.

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)

Detailed Description

template<class TriMeshType, class PolyMeshType>
struct vcg::tri::PolygonSupport< TriMeshType, PolyMeshType >

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.


Member Function Documentation

template<class TriMeshType , class PolyMeshType >
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.

template<class TriMeshType , class PolyMeshType >
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.

template<class TriMeshType , class PolyMeshType >
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.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


vcglib
Author(s): Christian Bersch
autogenerated on Fri Jan 11 09:23:34 2013