53#ifndef OPENMESH_MC_DECIMATER_DECIMATERT_HH
54#define OPENMESH_MC_DECIMATER_DECIMATERT_HH
76template <
typename MeshT >
85 typedef std::vector< Module* > ModuleList;
86 typedef typename ModuleList::iterator ModuleListIterator;
110 size_t decimate(
size_t _n_collapses ,
bool _only_selected =
false);
122 size_t decimate_to(
size_t _n_vertices ,
bool _only_selected =
false)
124 return ( (_n_vertices < this->
mesh().n_vertices()) ?
125 decimate( this->
mesh().n_vertices() - _n_vertices , _only_selected ) : 0 );
141 size_t decimate_to_faces(
size_t _n_vertices=0,
size_t _n_faces=0 ,
bool _only_selected =
false);
147 size_t decimate_constraints_only(
float _factor,
bool _only_selected =
false);
149 size_t samples(){
return randomSamples_;}
150 void set_samples(
const size_t _value){randomSamples_ = _value;}
158 size_t randomSamples_;
166#if defined(OM_INCLUDE_TEMPLATES) && !defined(OPENMESH_MULTIPLE_CHOICE_DECIMATER_DECIMATERT_CC)
167#define OPENMESH_MULTIPLE_CHOICE_DECIMATER_TEMPLATES
Contains all the mesh ingredients like the polygonal mesh, the triangle mesh, different mesh kernels ...
Definition MeshItems.hh:59
Software related to mesh decimation.
Mesh & mesh()
access mesh. used in modules.
Definition BaseDecimaterT.hh:138
Stores information about a halfedge collapse.
Definition CollapseInfoT.hh:74
size_t decimate_to(size_t _n_vertices, bool _only_selected=false)
Decimate the mesh to a desired target vertex complexity.
Definition McDecimaterT.hh:122
size_t decimate(size_t _n_collapses, bool _only_selected=false)
Decimate (perform _n_collapses collapses).
Definition McDecimaterT_impl.hh:102
McDecimaterT(Mesh &_mesh)
Constructor.
Definition McDecimaterT_impl.hh:76
Base class for all decimation modules.
Definition ModBaseT.hh:193