OpenMesh
OpenMesh::Decimater::ModHausdorffT< DecimaterT > Class Template Reference

Use Hausdorff distance to control decimation. More...

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

Inheritance diagram for OpenMesh::Decimater::ModHausdorffT< DecimaterT >:
Collaboration diagram for OpenMesh::Decimater::ModHausdorffT< DecimaterT >:

List of all members.

Public Types

typedef ModHausdorffT< DecimaterTSelf
typedef
OpenMesh::Decimater::ModHandleT
< Self
Handle
typedef
OpenMesh::Decimater::ModBaseT
< DecimaterT
Base
typedef Base::Mesh Mesh
typedef Base::CollapseInfo CollapseInfo
typedef Mesh::Scalar Scalar
typedef Mesh::Point Point
typedef Mesh::FaceHandle FaceHandle
typedef std::vector< Point > Points

Public Member Functions

virtual const std::string & name () const
 Set module's name (using DECIMATER_MODNAME macro)
 ModHausdorffT (DecimaterT &_dec, Scalar _error_tolerance=FLT_MAX)
 Constructor.
 ~ModHausdorffT ()
 Destructor.
Scalar tolerance () const
 get max error tolerance
void set_tolerance (Scalar _e)
 set max error tolerance
virtual void initialize ()
 reset per-face point lists
virtual float collapse_priority (const CollapseInfo &_ci)
 compute Hausdorff error for one-ring
virtual void postprocess_collapse (const CollapseInfo &_ci)
 re-distribute points

Detailed Description

template<class DecimaterT>
class OpenMesh::Decimater::ModHausdorffT< DecimaterT >

Use Hausdorff distance to control decimation.

This module computes the aspect ratio.

In binary mode, the collapse is legal if:

  • The distance after the collapse is lower than the given tolerance

No continuous mode


Member Function Documentation

template<class DecimaterT >
float OpenMesh::Decimater::ModHausdorffT< DecimaterT >::collapse_priority ( const CollapseInfo _ci) [virtual]

compute Hausdorff error for one-ring

This mod only allows collapses if the Hausdorff distance after a collapse is lower than the given tolerance.

Parameters:
_ciCollapse info data
Returns:
Binary return, if collapse is legal or illegal

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