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

#include <ModRoundnessT.hh>

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

List of all members.

Public Types

typedef Mesh::Point Point
typedef vector_traits< Point >
::value_type 
value_type

Public Member Functions

float collapse_priority (const CollapseInfo &_ci)
 DECIMATING_MODULE (ModRoundnessT, DecimaterType, Roundness)
 ModRoundnessT (DecimaterType &_dec)
 Constructor.
double roundness (const Vec3f &A, const Vec3f &B, const Vec3f &C)
void set_min_angle (float _angle, bool)
void set_min_roundness (value_type _min_roundness, bool _binary=true)
void unset_min_roundness ()
 Unset minimum value constraint and enable non-binary mode.
 ~ModRoundnessT ()
 Destructor.

Private Attributes

value_type min_r_

Detailed Description

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

Compute error value based on roundness criteria.

Definition at line 78 of file ModRoundnessT.hh.


Member Typedef Documentation

template<class DecimaterType >
typedef Mesh::Point OpenMesh::Decimater::ModRoundnessT< DecimaterType >::Point

Definition at line 86 of file ModRoundnessT.hh.

template<class DecimaterType >
typedef vector_traits<Point>::value_type OpenMesh::Decimater::ModRoundnessT< DecimaterType >::value_type

Definition at line 87 of file ModRoundnessT.hh.


Constructor & Destructor Documentation

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

Constructor.

Definition at line 92 of file ModRoundnessT.hh.

template<class DecimaterType >
OpenMesh::Decimater::ModRoundnessT< DecimaterType >::~ModRoundnessT (  )  [inline]

Destructor.

Definition at line 98 of file ModRoundnessT.hh.


Member Function Documentation

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

Compute collapse priority due to roundness of triangle.

The roundness is computed by dividing the radius of the circumference by the length of the shortest edge. The result is normalized.

Returns:
[0:1] or ILLEGAL_COLLAPSE in non-binary mode
LEGAL_COLLAPSE or ILLEGAL_COLLAPSE in binary mode
See also:
set_min_roundness()

Definition at line 112 of file ModRoundnessT.hh.

template<class DecimaterType >
OpenMesh::Decimater::ModRoundnessT< DecimaterType >::DECIMATING_MODULE ( ModRoundnessT< DecimaterType >  ,
DecimaterType  ,
Roundness   
)
template<class DecimaterType >
double OpenMesh::Decimater::ModRoundnessT< DecimaterType >::roundness ( const Vec3f A,
const Vec3f B,
const Vec3f C 
) [inline]

Definition at line 260 of file ModRoundnessT.hh.

template<class DecimaterType >
void OpenMesh::Decimater::ModRoundnessT< DecimaterType >::set_min_angle ( float  _angle,
bool   
) [inline]

Definition at line 173 of file ModRoundnessT.hh.

template<class DecimaterType >
void OpenMesh::Decimater::ModRoundnessT< DecimaterType >::set_min_roundness ( value_type  _min_roundness,
bool  _binary = true 
) [inline]

Set a minimum roundness value.

Parameters:
_min_roundness in range (0,1)
_binary Set true, if the binary mode should be enabled, else false. In latter case the collapse_priority() returns a float value if the constrain does not apply and ILLEGAL_COLLAPSE else.

Definition at line 205 of file ModRoundnessT.hh.

template<class DecimaterType >
void OpenMesh::Decimater::ModRoundnessT< DecimaterType >::unset_min_roundness (  )  [inline]

Unset minimum value constraint and enable non-binary mode.

Definition at line 213 of file ModRoundnessT.hh.


Member Data Documentation

template<class DecimaterType >
value_type OpenMesh::Decimater::ModRoundnessT< DecimaterType >::min_r_ [private]

Definition at line 287 of file ModRoundnessT.hh.


The documentation for this class was generated from the following file:
 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