#include <ModNormalFlippingT.hh>

Public Member Functions | |
| float | collapse_priority (const CollapseInfo &_ci) |
| DECIMATING_MODULE (ModNormalFlippingT, DecimaterT, NormalFlipping) | |
| float | max_normal_deviation () const |
| get normal deviation | |
| ModNormalFlippingT (DecimaterT &_dec) | |
| Constructor. | |
| float | normal_deviation () const |
| void | set_max_normal_deviation (float _f) |
| void | set_normal_deviation (float _f) |
| ~ModNormalFlippingT () | |
Private Member Functions | |
| void | set_binary (bool _b) |
| Set whether module is binary or not. | |
Private Attributes | |
| double | max_deviation_ |
| double | min_cos_ |
Decimating module to avoid flipping of faces.
This module can be used only as a binary module. The criterion of allowing/disallowing the collapse is the angular deviation between the face normal of the orignal faces and normals of the faces after the collapse. The collapse will pass the test, if the deviation is below a given threshold.
Definition at line 78 of file ModNormalFlippingT.hh.
| OpenMesh::Decimater::ModNormalFlippingT< DecimaterT >::ModNormalFlippingT | ( | DecimaterT & | _dec | ) | [inline] |
Constructor.
Definition at line 87 of file ModNormalFlippingT.hh.
| OpenMesh::Decimater::ModNormalFlippingT< DecimaterT >::~ModNormalFlippingT | ( | ) | [inline] |
Definition at line 93 of file ModNormalFlippingT.hh.
| float OpenMesh::Decimater::ModNormalFlippingT< DecimaterT >::collapse_priority | ( | const CollapseInfo & | _ci | ) | [inline] |
Compute collapse priority due to angular deviation of face normals before and after a collapse.
_ci.v0 the face normal if the collpase would be executed.| _ci | The collapse description |
Definition at line 113 of file ModNormalFlippingT.hh.
| OpenMesh::Decimater::ModNormalFlippingT< DecimaterT >::DECIMATING_MODULE | ( | ModNormalFlippingT< DecimaterT > | , | |
| DecimaterT | , | |||
| NormalFlipping | ||||
| ) |
| float OpenMesh::Decimater::ModNormalFlippingT< DecimaterT >::max_normal_deviation | ( | ) | const [inline] |
get normal deviation
Definition at line 149 of file ModNormalFlippingT.hh.
| float OpenMesh::Decimater::ModNormalFlippingT< DecimaterT >::normal_deviation | ( | ) | const [inline] |
Definition at line 152 of file ModNormalFlippingT.hh.
| void OpenMesh::Decimater::ModNormalFlippingT< DecimaterT >::set_binary | ( | bool | _b | ) | [inline, private] |
Set whether module is binary or not.
Reimplemented from OpenMesh::Decimater::ModBaseT< DecimaterT >.
Definition at line 171 of file ModNormalFlippingT.hh.
| void OpenMesh::Decimater::ModNormalFlippingT< DecimaterT >::set_max_normal_deviation | ( | float | _f | ) | [inline] |
Set normal deviation
Set the maximum angular deviation of the orignal normal and the new normal in degrees.
Definition at line 159 of file ModNormalFlippingT.hh.
| void OpenMesh::Decimater::ModNormalFlippingT< DecimaterT >::set_normal_deviation | ( | float | _f | ) | [inline] |
Definition at line 165 of file ModNormalFlippingT.hh.
double OpenMesh::Decimater::ModNormalFlippingT< DecimaterT >::max_deviation_ [private] |
Definition at line 176 of file ModNormalFlippingT.hh.
double OpenMesh::Decimater::ModNormalFlippingT< DecimaterT >::min_cos_ [private] |
Definition at line 176 of file ModNormalFlippingT.hh.