OpenMesh
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
OpenMesh::Decimater::ModEdgeLengthT< DecimaterT > Class Template Reference

Use edge length to control decimation. More...

#include <OpenMesh/Tools/Decimater/ModEdgeLengthT.hh>

Inheritance diagram for OpenMesh::Decimater::ModEdgeLengthT< DecimaterT >:
Collaboration diagram for OpenMesh::Decimater::ModEdgeLengthT< DecimaterT >:

List of all members.

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 Types inherited from OpenMesh::Decimater::ModBaseT< DecimaterType >
enum  { ILLEGAL_COLLAPSE = -1, LEGAL_COLLAPSE = 0 }

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.
- Public Member Functions inherited from OpenMesh::Decimater::ModBaseT< DecimaterType >
virtual ~ModBaseT ()
 Virtual desctructor.
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 void initialize ()
 Initialize module-internal stuff.
virtual float collapse_priority (const CollapseInfoT< Mesh > &)
 Return collapse priority.
virtual void preprocess_collapse (const CollapseInfoT< Mesh > &)
 Before _from_vh has been collapsed into _to_vh, this method will be called.
virtual void postprocess_collapse (const CollapseInfoT< Mesh > &)
 After _from_vh has been collapsed into _to_vh, this method will be called.

Additional Inherited Members

- Protected Member Functions inherited from OpenMesh::Decimater::ModBaseT< DecimaterType >
 ModBaseT (DecimaterType &_dec, bool _is_binary)
 Default constructor.
Mesh & mesh ()
 Access the mesh associated with the decimater.

Detailed Description

template<class DecimaterT>
class OpenMesh::Decimater::ModEdgeLengthT< DecimaterT >

Use edge length to control decimation.

This module computes the edge length.

In binary and continuous mode, the collapse is legal if:

  • The length after the collapse is lower than the given tolerance

Member Function Documentation

template<class DecimaterT >
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_


The documentation for this class was generated from the following files:

acg pic Project OpenMesh, ©  Computer Graphics Group, RWTH Aachen. Documentation generated using doxygen .