OpenMesh
|
Use edge length to control decimation. More...
#include <OpenMesh/Tools/Decimater/ModEdgeLengthT.hh>
Public Types | |
typedef ModEdgeLengthT < DecimaterT > | Self |
typedef OpenMesh::Decimater::ModHandleT < Self > | Handle |
typedef OpenMesh::Decimater::ModBaseT < DecimaterT > | Base |
typedef Base::Mesh | Mesh |
typedef Base::CollapseInfo | CollapseInfo |
Public Member Functions | |
virtual const std::string & | name () const |
Set module's name (using DECIMATER_MODNAME macro) | |
ModEdgeLengthT (DecimaterT &_dec, float _edge_length=FLT_MAX, bool _is_binary=true) | |
Constructor. | |
float | edge_length () const |
get edge_length | |
void | set_edge_length (float _f) |
set edge_length | |
float | collapse_priority (const CollapseInfo &_ci) |
Compute priority: Binary mode: Don't collapse edges longer then edge_length_ Cont. |
Use edge length to control decimation.
This module computes the edge length.
In binary and continuous mode, the collapse is legal if:
float OpenMesh::Decimater::ModEdgeLengthT< DecimaterT >::collapse_priority | ( | const CollapseInfo & | _ci | ) |
Compute priority: Binary mode: Don't collapse edges longer then edge_length_ Cont.
mode: Collapse smallest edge first, but don't collapse edges longer as edge_length_