52 #ifndef OPENMESH_MIXED_DECIMATER_DECIMATERT_HH
53 #define OPENMESH_MIXED_DECIMATER_DECIMATERT_HH
76 template <
typename MeshT >
85 typedef std::vector< Module* > ModuleList;
86 typedef typename ModuleList::iterator ModuleListIterator;
113 size_t decimate(
const size_t _n_collapses,
const float _mc_factor ,
bool _only_selected =
false);
129 size_t decimate_to(
size_t _n_vertices,
const float _mc_factor ,
bool _only_selected =
false)
131 return ( (_n_vertices < this->
mesh().n_vertices()) ?
132 decimate( this->
mesh().n_vertices() - _n_vertices, _mc_factor , _only_selected) : 0 );
152 size_t decimate_to_faces(
const size_t _n_vertices=0,
const size_t _n_faces=0 ,
const float _mc_factor = 0.8 ,
bool _only_selected =
false);
162 #if defined(OM_INCLUDE_TEMPLATES) && !defined(OPENMESH_MIXED_DECIMATER_DECIMATERT_CC)
163 #define OPENMESH_MIXED_DECIMATER_TEMPLATES
Contains all the mesh ingredients like the polygonal mesh, the triangle mesh, different mesh kernels ...
Definition: MeshItems.hh:59
Definition: BaseDecimaterT.hh:86
Mesh & mesh()
access mesh. used in modules.
Definition: BaseDecimaterT.hh:138
Stores information about a halfedge collapse.
Definition: CollapseInfoT.hh:74
Decimater framework.
Definition: DecimaterT.hh:79
Multiple choice decimater framework.
Definition: McDecimaterT.hh:78
Mixed decimater framework.
Definition: MixedDecimaterT.hh:78
MixedDecimaterT(Mesh &_mesh)
Constructor.
Definition: MixedDecimaterT_impl.hh:71
size_t decimate(const size_t _n_collapses, const float _mc_factor, bool _only_selected=false)
Decimate (perform _n_collapses collapses).
Definition: MixedDecimaterT_impl.hh:85
~MixedDecimaterT()
Destructor.
Definition: MixedDecimaterT_impl.hh:79
size_t decimate_to(size_t _n_vertices, const float _mc_factor, bool _only_selected=false)
Decimate the mesh to a desired target vertex complexity.
Definition: MixedDecimaterT.hh:129
size_t decimate_to_faces(const size_t _n_vertices=0, const size_t _n_faces=0, const float _mc_factor=0.8, bool _only_selected=false)
Attempts to decimate the mesh until a desired vertex or face complexity is achieved.
Definition: MixedDecimaterT_impl.hh:109
Base class for all decimation modules.
Definition: ModBaseT.hh:193