OpenMesh
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
OpenMesh::Decimater::ModQuadricT< DecimaterType > Class Template Reference

Mesh decimation module computing collapse priority based on error quadrics. More...

#include <OpenMesh/Tools/Decimater/ModQuadricT.hh>

Inheritance diagram for OpenMesh::Decimater::ModQuadricT< DecimaterType >:
Collaboration diagram for OpenMesh::Decimater::ModQuadricT< DecimaterType >:

List of all members.

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 Types inherited from OpenMesh::Decimater::ModBaseT< DecimaterType >
enum  { ILLEGAL_COLLAPSE = -1, LEGAL_COLLAPSE = 0 }

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.
- Public Member Functions inherited from OpenMesh::Decimater::ModBaseT< DecimaterType >
virtual ~ModBaseT ()
 Virtual desctructor.
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 float collapse_priority (const CollapseInfoT< Mesh > &)
 Return collapse priority.
virtual void preprocess_collapse (const CollapseInfoT< Mesh > &)
 Before _from_vh has been collapsed into _to_vh, this method will be called.
virtual void postprocess_collapse (const CollapseInfoT< Mesh > &)
 After _from_vh has been collapsed into _to_vh, this method will be called.

Additional Inherited Members

- Protected Member Functions inherited from OpenMesh::Decimater::ModBaseT< DecimaterType >
 ModBaseT (DecimaterType &_dec, bool _is_binary)
 Default constructor.
Mesh & mesh ()
 Access the mesh associated with the decimater.

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.


Constructor & Destructor Documentation

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

Constructor.


Member Function Documentation

template<class DecimaterType>
virtual float OpenMesh::Decimater::ModQuadricT< DecimaterType >::collapse_priority ( const CollapseInfo _ci)
inlinevirtual

Compute collapse priority based on error quadrics.

See also:
ModBaseT::collapse_priority() for return values
set_max_err()
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:
_errMaximum error allowed
_binaryLet the module work in non-binary mode in spite of the enabled constraint.
See also:
unset_max_err()
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()

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

acg pic Project OpenMesh, ©  Computer Graphics Group, RWTH Aachen. Documentation generated using doxygen .