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

Use aspect ratio to control decimation. More...

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

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

List of all members.

Public Types

typedef ModAspectRatioT
< DecimaterT
Self
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
- 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)
 ModAspectRatioT (DecimaterT &_dec, float _min_aspect=5.0, bool _is_binary=true)
 constructor
 ~ModAspectRatioT ()
 destructor
float aspect_ratio () const
 get aspect ratio
void set_aspect_ratio (float _f)
 set aspect ratio
void initialize ()
 precompute face aspect ratio
float collapse_priority (const CollapseInfo &_ci)
 Returns the collapse priority.
void preprocess_collapse (const CollapseInfo &_ci)
 update aspect ratio of one-ring
- 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 DecimaterT>
class OpenMesh::Decimater::ModAspectRatioT< DecimaterT >

Use aspect ratio to control decimation.

This module computes the aspect ratio.

In binary mode, the collapse is legal if:

  • The aspect ratio after the collapse is greater
  • The aspect ratio after the collapse is greater than the given minimum

In continuous mode the collapse is illegal if:

  • The aspect ratio after the collapse is smaller than the given minimum

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

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