This abstract class define which functions a local modification to be used in the LocalOptimization. More...
#include <local_optimization.h>
Public Types | |
typedef LocalOptimization < MeshType >::HeapType | HeapType |
typedef MeshType::ScalarType | ScalarType |
Public Member Functions | |
virtual ScalarType | ComputePriority ()=0 |
Compute the priority to be used in the heap. | |
virtual void | Execute (MeshType &m)=0 |
Perform the operation and return the variation in the number of simplicies (>0 is refinement, <0 is simplification). | |
virtual const char * | Info (MeshType &) |
virtual bool | IsFeasible ()=0 |
return true if no constraint disallow this operation to be performed (ex: change of topology in edge collapses) | |
virtual ModifierType | IsOfType ()=0 |
return the type of operation | |
virtual bool | IsUpToDate ()=0 |
return true if the data have not changed since it was created | |
LocalModification () | |
virtual ScalarType | Priority () const =0 |
Return the priority to be used in the heap (implement static priority). | |
virtual void | UpdateHeap (HeapType &)=0 |
Update the heap as a consequence of this operation. | |
virtual | ~LocalModification () |
Static Public Member Functions | |
static float | HeapSimplexRatio () |
static void | Init (MeshType &m, HeapType &) |
perform initialization |
This abstract class define which functions a local modification to be used in the LocalOptimization.
Definition at line 111 of file local_optimization.h.
typedef LocalOptimization<MeshType>::HeapType vcg::LocalModification< MeshType >::HeapType |
Reimplemented in vcg::tri::TriEdgeCollapse< TriMeshType, MYTYPE >, vcg::tri::TriEdgeCollapseQuadric< TriMeshType, MYTYPE, HelperType >, vcg::tri::PlanarEdgeFlip< TRIMESH_TYPE, MYTYPE, QualityFunc >, vcg::tri::TopoEdgeFlip< TRIMESH_TYPE, MYTYPE >, vcg::tri::TriEdgeCollapse< MyMesh, MyTriEdgeCollapse >, vcg::tri::TriEdgeCollapseQuadric< MyMesh, MyTriEdgeCollapse, QInfoStandard< MyVertex > >, vcg::tri::PlanarEdgeFlip< MyMesh, MyDelaunayFlip >, and vcg::tri::PlanarEdgeFlip< TRIMESH_TYPE, MYTYPE >.
Definition at line 114 of file local_optimization.h.