OpenMesh
|
Use aspect ratio to control decimation. More...
#include <OpenMesh/Tools/Decimater/ModAspectRatioT.hh>
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 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 |
Use aspect ratio to control decimation.
This module computes the aspect ratio.
In binary mode, the collapse is legal if:
In continuous mode the collapse is illegal if: