51 #ifndef OPENMESH_MC_DECIMATER_DECIMATERT_HH
52 #define OPENMESH_MC_DECIMATER_DECIMATERT_HH
74 template <
typename MeshT >
83 typedef std::vector< Module* > ModuleList;
84 typedef typename ModuleList::iterator ModuleListIterator;
99 size_t decimate(
size_t _n_collapses );
104 return ( (_n_vertices < this->
mesh().n_vertices()) ?
105 decimate( this->
mesh().n_vertices() - _n_vertices ) : 0 );
120 size_t samples(){
return randomSamples_;}
121 void set_samples(
const size_t _value){randomSamples_ = _value;}
129 size_t randomSamples_;
137 #if defined(OM_INCLUDE_TEMPLATES) && !defined(OPENMESH_MULTIPLE_CHOICE_DECIMATER_DECIMATERT_CC)
138 #define OPENMESH_MULTIPLE_CHOICE_DECIMATER_TEMPLATES
142 #endif // OPENMESH_MC_DECIMATER_DECIMATERT_HH defined
Stores information about a halfedge collapse.
Definition: CollapseInfoT.hh:73
Base class for all decimation modules.
Definition: ModBaseT.hh:190
size_t decimate(size_t _n_collapses)
Decimate (perform _n_collapses collapses).
Definition: McDecimaterT.cc:101
Contains all the mesh ingredients like the polygonal mesh, the triangle mesh, different mesh kernels ...
Definition: MeshItems.hh:56
McDecimaterT(Mesh &_mesh)
Constructor.
Definition: McDecimaterT.cc:75
Mesh & mesh()
access mesh. used in modules.
Definition: BaseDecimaterT.hh:117
size_t decimate_constraints_only(float _factor)
Decimate only with constraints, while _factor gives the percentage of the constraints that should be ...
Definition: McDecimaterT.cc:360
~McDecimaterT()
Destructor.
Definition: McDecimaterT.cc:90
size_t decimate_to(size_t _n_vertices)
Decimate to target complexity, returns number of collapses.
Definition: McDecimaterT.hh:102
Multiple choice decimater framework.
Definition: McDecimaterT.hh:75
size_t decimate_to_faces(size_t _n_vertices=0, size_t _n_faces=0)
Decimate to target complexity (vertices and faces).
Definition: McDecimaterT.cc:221
Definition: BaseDecimaterT.hh:82