OpenMesh::Decimater::ModQuadricT< DecimaterType > Class Template Reference

#include <ModQuadricT.hh>

Inheritance diagram for OpenMesh::Decimater::ModQuadricT< DecimaterType >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual float collapse_priority (const CollapseInfo &_ci)
 DECIMATING_MODULE (ModQuadricT, DecimaterType, Quadric)
virtual void initialize (void)
 Initalize the module and prepare the mesh for decimation.
double max_err () const
 Return value of max. allowed error.
 ModQuadricT (DecimaterType &_dec)
virtual void postprocess_collapse (const CollapseInfo &_ci)
 Post-process halfedge collapse (accumulate quadrics).
void set_max_err (double _err, bool _binary=true)
void unset_max_err (void)
virtual ~ModQuadricT ()
 Destructor.

Private Attributes

double max_err_
VPropHandleT
< Geometry::QuadricT< double > > 
quadrics_

Detailed Description

template<class DecimaterType>
class OpenMesh::Decimater::ModQuadricT< DecimaterType >

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 76 of file ModQuadricT.hh.


Constructor & Destructor Documentation

template<class DecimaterType >
OpenMesh::Decimater::ModQuadricT< DecimaterType >::ModQuadricT ( DecimaterType &  _dec  )  [inline]

Constructor

Definition at line 89 of file ModQuadricT.hh.

template<class DecimaterType >
virtual OpenMesh::Decimater::ModQuadricT< DecimaterType >::~ModQuadricT (  )  [inline, virtual]

Destructor.

Definition at line 98 of file ModQuadricT.hh.


Member Function Documentation

template<class DecimaterType >
virtual float OpenMesh::Decimater::ModQuadricT< DecimaterType >::collapse_priority ( const CollapseInfo _ci  )  [inline, virtual]

Compute collapse priority based on error quadrics.

See also:
ModBaseT::collapse_priority() for return values
set_max_err()

Definition at line 114 of file ModQuadricT.hh.

template<class DecimaterType >
OpenMesh::Decimater::ModQuadricT< DecimaterType >::DECIMATING_MODULE ( ModQuadricT< DecimaterType >  ,
DecimaterType  ,
Quadric   
)
template<class DecimaterType >
void OpenMesh::Decimater::ModQuadricT< DecimaterType >::initialize ( void   )  [inline, virtual]

Initalize the module and prepare the mesh for decimation.

Reimplemented from OpenMesh::Decimater::ModBaseT< DecimaterType >.

Definition at line 66 of file ModQuadricT.cc.

template<class DecimaterType >
double OpenMesh::Decimater::ModQuadricT< DecimaterType >::max_err (  )  const [inline]

Return value of max. allowed error.

Definition at line 166 of file ModQuadricT.hh.

template<class DecimaterType >
virtual void OpenMesh::Decimater::ModQuadricT< DecimaterType >::postprocess_collapse ( const CollapseInfo _ci  )  [inline, virtual]

Post-process halfedge collapse (accumulate quadrics).

Definition at line 135 of file ModQuadricT.hh.

template<class DecimaterType >
void OpenMesh::Decimater::ModQuadricT< DecimaterType >::set_max_err ( double  _err,
bool  _binary = true 
) [inline]

Set maximum quadric error constraint and enable binary mode.

Parameters:
_err Maximum error allowed
_binary Let the module work in non-binary mode in spite of the enabled constraint.
See also:
unset_max_err()

Definition at line 151 of file ModQuadricT.hh.

template<class DecimaterType >
void OpenMesh::Decimater::ModQuadricT< DecimaterType >::unset_max_err ( void   )  [inline]

Unset maximum quadric error constraint and restore non-binary mode.

See also:
set_max_err()

Definition at line 159 of file ModQuadricT.hh.


Member Data Documentation

template<class DecimaterType >
double OpenMesh::Decimater::ModQuadricT< DecimaterType >::max_err_ [private]

Definition at line 172 of file ModQuadricT.hh.

template<class DecimaterType >
VPropHandleT< Geometry::QuadricT<double> > OpenMesh::Decimater::ModQuadricT< DecimaterType >::quadrics_ [private]

Definition at line 175 of file ModQuadricT.hh.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


openmesh
Author(s): Benjamin Pitzer
autogenerated on Fri Jan 11 12:11:17 2013