Mesh decimation module computing collapse priority based on error quadrics. More...
#include </data1/home1/moebius/projects/release/OpenMesh-2.0/src/OpenMesh/Tools/Decimater/ModQuadricT.hh>
Public Types | |
typedef ModQuadricT < DecimaterType > | Self |
typedef OpenMesh::Decimater::ModHandleT < Self > | Handle |
typedef OpenMesh::Decimater::ModBaseT < DecimaterType > | Base |
typedef Base::Mesh | Mesh |
typedef Base::CollapseInfo | CollapseInfo |
Public Member Functions | |
virtual const std::string & | name () const |
Set module's name (using DECIMATER_MODNAME macro). | |
ModQuadricT (DecimaterType &_dec) | |
Constructor. | |
virtual | ~ModQuadricT () |
Destructor. | |
virtual void | initialize (void) |
Initalize the module and prepare the mesh for decimation. | |
virtual float | collapse_priority (const CollapseInfo &_ci) |
Compute collapse priority based on error quadrics. | |
virtual void | postprocess_collapse (const CollapseInfo &_ci) |
Post-process halfedge collapse (accumulate quadrics). | |
void | set_max_err (double _err, bool _binary=true) |
Set maximum quadric error constraint and enable binary mode. | |
void | unset_max_err (void) |
Unset maximum quadric error constraint and restore non-binary mode. | |
double | max_err () const |
Return value of max. allowed error. |
Mesh decimation module computing collapse priority based on error quadrics.
This module can be used as a binary and non-binary module.
OpenMesh::Decimater::ModQuadricT< DecimaterType >::ModQuadricT | ( | DecimaterType & | _dec | ) | [inline] |
Constructor.
For internal use only.
virtual float OpenMesh::Decimater::ModQuadricT< DecimaterType >::collapse_priority | ( | const CollapseInfo & | _ci | ) | [inline, virtual] |
Compute collapse priority based on error quadrics.
void OpenMesh::Decimater::ModQuadricT< DecimaterType >::set_max_err | ( | double | _err, | |
bool | _binary = true | |||
) | [inline] |
Set maximum quadric error constraint and enable binary mode.
_err | Maximum error allowed | |
_binary | Let the module work in non-binary mode in spite of the enabled constraint. |
void OpenMesh::Decimater::ModQuadricT< DecimaterType >::unset_max_err | ( | void | ) | [inline] |
Unset maximum quadric error constraint and restore non-binary mode.