58 #ifndef OPENMESH_MIXED_DECIMATER_DECIMATERT_HH 59 #define OPENMESH_MIXED_DECIMATER_DECIMATERT_HH 82 template <
typename MeshT >
91 typedef std::vector< Module* > ModuleList;
92 typedef typename ModuleList::iterator ModuleListIterator;
107 size_t decimate(
const size_t _n_collapses,
const float _mc_factor );
112 return ( (_n_vertices < this->
mesh().n_vertices()) ?
113 decimate( this->
mesh().n_vertices() - _n_vertices, _mc_factor ) : 0 );
120 size_t decimate_to_faces(
const size_t _n_vertices=0,
const size_t _n_faces=0 ,
const float _mc_factor = 0.8);
130 #if defined(OM_INCLUDE_TEMPLATES) && !defined(OPENMESH_MIXED_DECIMATER_DECIMATERT_CC) 131 #define OPENMESH_MIXED_DECIMATER_TEMPLATES 135 #endif // OPENMESH_MIXED_DECIMATER_DECIMATERT_HH
~MixedDecimaterT()
Destructor.
size_t decimate_to_faces(const size_t _n_vertices=0, const size_t _n_faces=0, const float _mc_factor=0.8)
Mesh & mesh()
access mesh. used in modules.
size_t decimate(const size_t _n_collapses, const float _mc_factor)
size_t decimate_to(size_t _n_vertices, const float _mc_factor)
Decimate to target complexity, returns number of collapses.
MixedDecimaterT(Mesh &_mesh)
Constructor.