vcg::tri::PlanarEdgeFlip< TRIMESH_TYPE, MYTYPE, QualityFunc > Class Template Reference
[Trimesh]

#include <tri_edge_flip.h>

Inheritance diagram for vcg::tri::PlanarEdgeFlip< TRIMESH_TYPE, MYTYPE, QualityFunc >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ScalarType ComputePriority ()
void Execute (TRIMESH_TYPE &m)
int GetMark ()
PosType GetPos ()
const char * Info (TRIMESH_TYPE &m)
virtual bool IsFeasible ()
ModifierType IsOfType ()
bool IsUpToDate ()
 PlanarEdgeFlip (const PlanarEdgeFlip &par)
 PlanarEdgeFlip (PosType pos, int mark)
 PlanarEdgeFlip ()
virtual ScalarType Priority () const
virtual void UpdateHeap (HeapType &heap)
 ~PlanarEdgeFlip ()

Static Public Member Functions

static ScalarTypeCoplanarAngleThresholdDeg ()
static void Init (TRIMESH_TYPE &mesh, HeapType &heap)

Protected Types

typedef TRIMESH_TYPE::CoordType CoordType
typedef TRIMESH_TYPE::FaceIterator FaceIterator
typedef TRIMESH_TYPE::FacePointer FacePointer
typedef TRIMESH_TYPE::FaceType FaceType
typedef LocalOptimization
< TRIMESH_TYPE >::HeapElem 
HeapElem
typedef LocalOptimization
< TRIMESH_TYPE >::HeapType 
HeapType
typedef vcg::face::Pos< FaceTypePosType
typedef TRIMESH_TYPE::ScalarType ScalarType
typedef TRIMESH_TYPE::VertexPointer VertexPointer
typedef TRIMESH_TYPE::VertexType VertexType

Static Protected Member Functions

static int & GlobalMark ()
static void Insert (HeapType &heap, PosType &p, int mark)

Protected Attributes

int _localMark
PosType _pos
ScalarType _priority

Detailed Description

template<class TRIMESH_TYPE, class MYTYPE, typename TRIMESH_TYPE::ScalarType(*)(Point3< typename TRIMESH_TYPE::ScalarType > const &p0, Point3< typename TRIMESH_TYPE::ScalarType > const &p1, Point3< typename TRIMESH_TYPE::ScalarType > const &p2) QualityFunc = Quality>
class vcg::tri::PlanarEdgeFlip< TRIMESH_TYPE, MYTYPE, QualityFunc >

This Class is specialization of LocalModification for the edge flip It wraps the atomic operation EdgeFlip to be used in a optimization routine. Note that it has knowledge of the heap of the class LocalOptimization because it is responsible of updating it after a flip has been performed This is the simplest edge flipping class. It flips an edge only if two adjacent faces are coplanar and the quality of the faces improves after the flip.

Definition at line 52 of file tri_edge_flip.h.


Member Typedef Documentation

template<class TRIMESH_TYPE, class MYTYPE, typename TRIMESH_TYPE::ScalarType(*)(Point3< typename TRIMESH_TYPE::ScalarType > const &p0, Point3< typename TRIMESH_TYPE::ScalarType > const &p1, Point3< typename TRIMESH_TYPE::ScalarType > const &p2) QualityFunc = Quality>
typedef TRIMESH_TYPE::FaceType vcg::tri::PlanarEdgeFlip< TRIMESH_TYPE, MYTYPE, QualityFunc >::FaceType [protected]

The documentation for this class 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