Developer Documentation
|
#include <OpenFlipper/libs_required/OpenMesh/src/OpenMesh/Tools/Decimater/ModNormalFlippingT.hh>
Public Member Functions | |
DECIMATING_MODULE (ModNormalFlippingT, MeshT, NormalFlipping) | |
ModNormalFlippingT (MeshT &_mesh) | |
Constructor. More... | |
float | collapse_priority (const CollapseInfo &_ci) override |
void | set_error_tolerance_factor (double _factor) override |
set the percentage of maximum normal deviation More... | |
double | max_normal_deviation () const |
get normal deviation More... | |
void | set_max_normal_deviation (double _d) |
![]() | |
virtual | ~ModBaseT () |
Virtual desctructor. More... | |
virtual const std::string & | name () const |
Set module's name. More... | |
bool | is_binary (void) const |
Returns true if criteria returns a binary value. More... | |
void | set_binary (bool _b) |
Set whether module is binary or not. More... | |
virtual void | initialize () |
Initialize module-internal stuff. More... | |
virtual float | collapse_priority (const CollapseInfoT< MeshT > &) |
virtual void | preprocess_collapse (const CollapseInfoT< MeshT > &) |
virtual void | postprocess_collapse (const CollapseInfoT< MeshT > &) |
virtual void | set_error_tolerance_factor (double _factor) |
Private Attributes | |
double | max_deviation_ |
double | min_cos_ |
Additional Inherited Members | |
![]() | |
enum | { ILLEGAL_COLLAPSE = -1 , LEGAL_COLLAPSE = 0 } |
typedef MeshT | Mesh |
typedef CollapseInfoT< MeshT > | CollapseInfo |
![]() | |
ModBaseT (MeshT &_mesh, bool _is_binary) | |
MeshT & | mesh () |
Access the mesh associated with the decimater. More... | |
![]() | |
double | error_tolerance_factor_ |
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 original 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 80 of file ModNormalFlippingT.hh.
|
inlineexplicit |
Constructor.
Definition at line 89 of file ModNormalFlippingT.hh.
|
inline |
Definition at line 103 of file ModNormalFlippingT.hh.
|
inlineoverride |
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 125 of file ModNormalFlippingT.hh.
|
inline |
get normal deviation
Definition at line 172 of file ModNormalFlippingT.hh.
|
inlineoverridevirtual |
set the percentage of maximum normal deviation
Reimplemented from OpenMesh::Decimater::ModBaseT< MeshT >.
Definition at line 157 of file ModNormalFlippingT.hh.
|
inline |
Set normal deviation
Set the maximum angular deviation of the orignal normal and the new normal in degrees.
Definition at line 179 of file ModNormalFlippingT.hh.
|
private |
Definition at line 187 of file ModNormalFlippingT.hh.
|
private |
Definition at line 187 of file ModNormalFlippingT.hh.