|
Developer Documentation
|
Use aspect ratio to control decimation. More...
#include <OpenFlipper/libs_required/OpenMesh/src/OpenMesh/Tools/Decimater/ModAspectRatioT.hh>
Public Types | |
| typedef Mesh::Scalar | Scalar |
| typedef Mesh::Point | Point |
Public Types inherited from OpenMesh::Decimater::ModBaseT< MeshT > | |
| enum | { ILLEGAL_COLLAPSE = -1 , LEGAL_COLLAPSE = 0 } |
| typedef MeshT | Mesh |
| typedef CollapseInfoT< MeshT > | CollapseInfo |
Public Member Functions | |
| ModAspectRatioT (MeshT &_mesh, 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 () override |
| precompute face aspect ratio | |
| float | collapse_priority (const CollapseInfo &_ci) override |
| Returns the collapse priority. | |
| void | preprocess_collapse (const CollapseInfo &_ci) override |
| update aspect ratio of one-ring | |
| void | set_error_tolerance_factor (double _factor) override |
| set percentage of aspect ratio | |
Public Member Functions inherited from OpenMesh::Decimater::ModBaseT< MeshT > | |
| virtual | ~ModBaseT () |
| Virtual desctructor. | |
| virtual const std::string & | name () const |
| Set module's name. | |
| 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< MeshT > &) |
| virtual void | preprocess_collapse (const CollapseInfoT< MeshT > &) |
| virtual void | postprocess_collapse (const CollapseInfoT< MeshT > &) |
Private Member Functions | |
| Scalar | aspectRatio (const Point &_v0, const Point &_v1, const Point &_v2) |
| return aspect ratio (length/height) of triangle | |
Private Attributes | |
| Mesh & | mesh_ |
| float | min_aspect_ |
| FPropHandleT< float > | aspect_ |
Additional Inherited Members | |
Protected Member Functions inherited from OpenMesh::Decimater::ModBaseT< MeshT > | |
| ModBaseT (MeshT &_mesh, bool _is_binary) | |
| MeshT & | mesh () |
| Access the mesh associated with the decimater. | |
Protected Attributes inherited from OpenMesh::Decimater::ModBaseT< MeshT > | |
| double | error_tolerance_factor_ |
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:
Definition at line 81 of file ModAspectRatioT.hh.
| typedef Mesh::Point OpenMesh::Decimater::ModAspectRatioT< MeshT >::Point |
Definition at line 88 of file ModAspectRatioT.hh.
| typedef Mesh::Scalar OpenMesh::Decimater::ModAspectRatioT< MeshT >::Scalar |
Definition at line 87 of file ModAspectRatioT.hh.
|
inlineexplicit |
constructor
Definition at line 91 of file ModAspectRatioT.hh.
|
inline |
destructor
Definition at line 99 of file ModAspectRatioT.hh.
|
inline |
get aspect ratio
Definition at line 104 of file ModAspectRatioT.hh.
|
private |
return aspect ratio (length/height) of triangle
Definition at line 65 of file ModAspectRatioT_impl.hh.
|
override |
Returns the collapse priority.
Definition at line 133 of file ModAspectRatioT_impl.hh.
|
overridevirtual |
precompute face aspect ratio
Reimplemented from OpenMesh::Decimater::ModBaseT< MeshT >.
Definition at line 96 of file ModAspectRatioT_impl.hh.
|
override |
update aspect ratio of one-ring
Definition at line 113 of file ModAspectRatioT_impl.hh.
|
inline |
set aspect ratio
Definition at line 109 of file ModAspectRatioT.hh.
|
overridevirtual |
set percentage of aspect ratio
Reimplemented from OpenMesh::Decimater::ModBaseT< MeshT >.
Definition at line 183 of file ModAspectRatioT_impl.hh.
|
private |
Definition at line 136 of file ModAspectRatioT.hh.
|
private |
Definition at line 134 of file ModAspectRatioT.hh.
|
private |
Definition at line 135 of file ModAspectRatioT.hh.