58#ifndef OPENMESH_MC_DECIMATER_DECIMATERT_HH
59#define OPENMESH_MC_DECIMATER_DECIMATERT_HH
81template <
typename MeshT >
90 typedef std::vector< Module* > ModuleList;
91 typedef typename ModuleList::iterator ModuleListIterator;
106 size_t decimate(
size_t _n_collapses );
111 return ( (_n_vertices < this->
mesh().n_vertices()) ?
112 decimate( this->
mesh().n_vertices() - _n_vertices ) : 0 );
119 size_t decimate_to_faces(
size_t _n_vertices=0,
size_t _n_faces=0 );
125 size_t decimate_constraints_only(
float _factor);
127 size_t samples(){
return randomSamples_;}
128 void set_samples(
const size_t _value){randomSamples_ = _value;}
136 size_t randomSamples_;
144#if defined(OM_INCLUDE_TEMPLATES) && !defined(OPENMESH_MULTIPLE_CHOICE_DECIMATER_DECIMATERT_CC)
145#define OPENMESH_MULTIPLE_CHOICE_DECIMATER_TEMPLATES
Contains all the mesh ingredients like the polygonal mesh, the triangle mesh, different mesh kernels ...
Definition MeshItems.hh:64
Software related to mesh decimation.
Mesh & mesh()
access mesh. used in modules.
Definition BaseDecimaterT.hh:143
Stores information about a halfedge collapse.
Definition CollapseInfoT.hh:80
size_t decimate(size_t _n_collapses)
Decimate (perform _n_collapses collapses).
Definition McDecimaterT.cc:108
size_t decimate_to(size_t _n_vertices)
Decimate to target complexity, returns number of collapses.
Definition McDecimaterT.hh:109
McDecimaterT(Mesh &_mesh)
Constructor.
Definition McDecimaterT.cc:82
Base class for all decimation modules.
Definition ModBaseT.hh:198