Developer Documentation
|
Mesh decimation module computing collapse priority based on error quadrics. More...
#include <OpenFlipper/libs_required/OpenMesh/src/OpenMesh/Tools/Decimater/ModQuadricT.hh>
Public Member Functions | |
DECIMATING_MODULE (ModQuadricT, MeshT, Quadric) | |
ModQuadricT (MeshT &_mesh) | |
virtual | ~ModQuadricT () |
Destructor. | |
virtual void | initialize (void) |
Initalize the module and prepare the mesh for decimation. | |
virtual float | collapse_priority (const CollapseInfo &_ci) |
virtual void | postprocess_collapse (const CollapseInfo &_ci) |
Post-process halfedge collapse (accumulate quadrics) | |
void | set_error_tolerance_factor (double _factor) |
set the percentage of maximum quadric error | |
void | set_max_err (double _err, bool _binary=true) |
void | unset_max_err (void) |
double | max_err () const |
Return value of max. allowed error. | |
Public Member Functions inherited from OpenMesh::Decimater::ModBaseT< MeshT > | |
virtual | ~ModBaseT () |
Virtual desctructor. | |
DECIMATER_MODNAME (ModBase) | |
Set module's name (using DECIMATER_MODNAME macro) | |
bool | is_binary (void) const |
Returns true if criteria returns a binary value. | |
void | set_binary (bool _b) |
Set whether module is binary or not. | |
virtual void | preprocess_collapse (const CollapseInfoT< MeshT > &) |
Private Attributes | |
double | max_err_ |
VPropHandleT< Geometry::QuadricT< double > > | quadrics_ |
Additional Inherited Members | |
Public Types inherited from OpenMesh::Decimater::ModBaseT< MeshT > | |
enum | { ILLEGAL_COLLAPSE = -1, LEGAL_COLLAPSE = 0 } |
typedef MeshT | Mesh |
typedef CollapseInfoT< MeshT > | CollapseInfo |
Protected Member Functions inherited from OpenMesh::Decimater::ModBaseT< MeshT > | |
ModBaseT (MeshT &_mesh, bool _is_binary) | |
MeshT & | mesh () |
Access the mesh associated with the decimater. | |
Protected Attributes inherited from OpenMesh::Decimater::ModBaseT< MeshT > | |
double | error_tolerance_factor_ |
Mesh decimation module computing collapse priority based on error quadrics.
This module can be used as a binary and non-binary module.
Definition at line 75 of file ModQuadricT.hh.
|
inline |
Constructor
Definition at line 88 of file ModQuadricT.hh.
|
inlinevirtual |
Compute collapse priority based on error quadrics.
Reimplemented from OpenMesh::Decimater::ModBaseT< MeshT >.
Reimplemented in ModBalancerT< D >.
Definition at line 113 of file ModQuadricT.hh.
|
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. |
Definition at line 153 of file ModQuadricT.hh.
|
inline |
Unset maximum quadric error constraint and restore non-binary mode.
Definition at line 161 of file ModQuadricT.hh.