53 #ifndef OPENMESH_MC_DECIMATER_DECIMATERT_HH 54 #define OPENMESH_MC_DECIMATER_DECIMATERT_HH 76 template <
typename MeshT >
85 typedef std::vector< Module* > ModuleList;
86 typedef typename ModuleList::iterator ModuleListIterator;
101 size_t decimate(
size_t _n_collapses );
106 return ( (_n_vertices < this->
mesh().n_vertices()) ?
107 decimate( this->
mesh().n_vertices() - _n_vertices ) : 0 );
122 size_t samples(){
return randomSamples_;}
123 void set_samples(
const size_t _value){randomSamples_ = _value;}
131 size_t randomSamples_;
139 #if defined(OM_INCLUDE_TEMPLATES) && !defined(OPENMESH_MULTIPLE_CHOICE_DECIMATER_DECIMATERT_CC) 140 #define OPENMESH_MULTIPLE_CHOICE_DECIMATER_TEMPLATES 144 #endif // OPENMESH_MC_DECIMATER_DECIMATERT_HH defined ~McDecimaterT()
Destructor.
size_t decimate_to_faces(size_t _n_vertices=0, size_t _n_faces=0)
Mesh & mesh()
access mesh. used in modules.
size_t decimate_constraints_only(float _factor)
size_t decimate(size_t _n_collapses)
size_t decimate_to(size_t _n_vertices)
Decimate to target complexity, returns number of collapses.
McDecimaterT(Mesh &_mesh)
Constructor.