vcg::tetra::TetraEdgeCollapse< TETRA_MESH_TYPE > Class Template Reference
[Tetramesh]

#include <tetra_edge_collapse.h>

Inheritance diagram for vcg::tetra::TetraEdgeCollapse< TETRA_MESH_TYPE >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

ScalarType ComputeError ()
ScalarType ComputePriority ()
 Compute the priority to be used in the heap.
void Execute (TETRA_MESH_TYPE &tm)
virtual const char * Info (TETRA_MESH_TYPE &m)
bool IsFeasible ()
 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 ()
 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).
 TetraEdgeCollapse (PosType p, int mark)
 Constructor with postype.
 TetraEdgeCollapse ()
 Default Constructor.
void UpdateHeap (typename LocalOptimization< TETRA_MESH_TYPE >::HeapType &h_ret)
 ~TetraEdgeCollapse ()

Static Public Member Functions

static void Init (TETRA_MESH_TYPE &m, typename LocalOptimization< TETRA_MESH_TYPE >::HeapType &h_ret)
 perform initialization

Private Types

typedef
TetraType::VertexType::CoordType 
CoordType
 The coordinate type.
typedef LocalOptimization
< TETRA_MESH_TYPE >::HeapElem 
HeapElem
 definition of the heap element
typedef PosLoop< TetraTypePosLType
 The HEdgePos Loop type.
typedef Pos< TetraTypePosType
 The HEdgePos type.
typedef
TETRA_MESH_TYPE::VertexType::ScalarType 
ScalarType
 The scalar type.
typedef TETRA_MESH_TYPE::TetraType TetraType
 The tetrahedral mesh type.
typedef TetraType::VertexType VertexType
 The vertex type.

Private Member Functions

ScalarType _AspectRatioMedia (PosType p)
ScalarType _VolumePreservingError (PosType &pos, CoordType &new_point, int nsteps)
 Modify pos and alfa to obtain the collapse that minimize the error.

Static Private Member Functions

static int & _Imark ()
 mark for up_dating

Private Attributes

vcg::tetra::EdgeCollapse
< TETRA_MESH_TYPE > 
_EC
 the pointer to edge collapser method
Point3< ScalarType_NewPoint
 the new point that substitute the edge
ScalarType _priority
 priority in the heap
PosType pos
 the pos of collapse
VertexTypevrem
 pointer to vertex that remain

Detailed Description

template<class TETRA_MESH_TYPE>
class vcg::tetra::TetraEdgeCollapse< TETRA_MESH_TYPE >

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

Definition at line 57 of file tetra_edge_collapse.h.


Member Typedef Documentation

template<class TETRA_MESH_TYPE >
typedef TETRA_MESH_TYPE::TetraType vcg::tetra::TetraEdgeCollapse< TETRA_MESH_TYPE >::TetraType [private]

The tetrahedral mesh type.

The tetrahedron type

Definition at line 63 of file tetra_edge_collapse.h.


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:27 2013