Classes | Public Member Functions | Static Public Member Functions | Protected Types | Static Protected Member Functions | Protected Attributes
vcg::tri::TriEdgeCollapse< TriMeshType, VertexPair, MYTYPE > Class Template Reference

#include <tri_edge_collapse.h>

Inheritance diagram for vcg::tri::TriEdgeCollapse< TriMeshType, VertexPair, MYTYPE >:
Inheritance graph
[legend]

List of all members.

Classes

class  FailStat
 static data to gather statistical information about the reasons of collapse failures More...

Public Member Functions

ScalarType ComputePriority (BaseParameterClass *)
 Compute the priority to be used in the heap.
void Execute (TriMeshType &m, BaseParameterClass *)
virtual const char * Info (TriMeshType &m)
bool IsFeasible (BaseParameterClass *)
 return true if no constraint disallow this operation to be performed (ex: change of topology in edge collapses)
ModifierType IsOfType ()
 return the type of operation
bool IsUpToDate () const
 return true if the data have not changed since it was created
virtual ScalarType Priority () const
 Return the priority to be used in the heap (implement static priority)
 TriEdgeCollapse ()
 Default Constructor.
 TriEdgeCollapse (const VertexPair &p, int mark, BaseParameterClass *pp)
 Constructor with postype.
void UpdateHeap (HeapType &h_ret, BaseParameterClass *pp)
 Update the heap as a consequence of this operation.
 ~TriEdgeCollapse ()

Static Public Member Functions

static void Init (TriMeshType &m, HeapType &h_ret, BaseParameterClass *pp)
static bool IsSymmetric (BaseParameterClass *)

Protected Types

typedef
FaceType::VertexType::CoordType 
CoordType
typedef TriMeshType::FaceType FaceType
typedef LocalOptimization
< TriMeshType >::HeapElem 
HeapElem
typedef LocalOptimization
< TriMeshType >::HeapType 
HeapType
typedef
TriMeshType::VertexType::ScalarType 
ScalarType
typedef
TriMeshType::FaceType::VertexType 
VertexType

Static Protected Member Functions

static int & GlobalMark ()
 mark for up_dating

Protected Attributes

ScalarType _priority
 priority in the heap
int localMark
 mark for up_dating
TriMeshType * mt
VertexPair pos
 the pair to collapse

Detailed Description

template<class TriMeshType, class VertexPair, class MYTYPE>
class vcg::tri::TriEdgeCollapse< TriMeshType, VertexPair, MYTYPE >

This Class is specialization of LocalModification for the edge collapse. It wraps the atomic operation EdgeCollapse to be used in a optimizatin routine. Note that it has knowledge of the heap of the class LocalOptimization because it is responsible of updating it after a collapse has been performed; This is the base class of all the specialized collapse classes like for example Quadric Edge Collapse. Each derived class

Definition at line 46 of file tri_edge_collapse.h.


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


shape_reconstruction
Author(s): Roberto Martín-Martín
autogenerated on Sat Jun 8 2019 18:43:10