51 #ifndef OPENMESH_MIXED_DECIMATER_DECIMATERT_HH
52 #define OPENMESH_MIXED_DECIMATER_DECIMATERT_HH
75 template <
typename MeshT >
84 typedef std::vector< Module* > ModuleList;
85 typedef typename ModuleList::iterator ModuleListIterator;
100 size_t decimate(
const size_t _n_collapses,
const float _mc_factor );
105 return ( (_n_vertices < this->
mesh().n_vertices()) ?
106 decimate( this->
mesh().n_vertices() - _n_vertices, _mc_factor ) : 0 );
113 size_t decimate_to_faces(
const size_t _n_vertices=0,
const size_t _n_faces=0 ,
const float _mc_factor = 0.8);
123 #if defined(OM_INCLUDE_TEMPLATES) && !defined(OPENMESH_MIXED_DECIMATER_DECIMATERT_CC)
124 #define OPENMESH_MIXED_DECIMATER_TEMPLATES
128 #endif // OPENMESH_MIXED_DECIMATER_DECIMATERT_HH
MixedDecimaterT(Mesh &_mesh)
Constructor.
Definition: MixedDecimaterT.cc:70
Stores information about a halfedge collapse.
Definition: CollapseInfoT.hh:73
Base class for all decimation modules.
Definition: ModBaseT.hh:190
~MixedDecimaterT()
Destructor.
Definition: MixedDecimaterT.cc:78
size_t decimate_to(size_t _n_vertices, const float _mc_factor)
Decimate to target complexity, returns number of collapses.
Definition: MixedDecimaterT.hh:103
Contains all the mesh ingredients like the polygonal mesh, the triangle mesh, different mesh kernels ...
Definition: MeshItems.hh:56
size_t decimate_to_faces(const size_t _n_vertices=0, const size_t _n_faces=0, const float _mc_factor=0.8)
Decimate to target complexity (vertices and faces).
Definition: MixedDecimaterT.cc:103
size_t decimate(const size_t _n_collapses, const float _mc_factor)
Decimate (perform _n_collapses collapses).
Definition: MixedDecimaterT.cc:84
Mesh & mesh()
access mesh. used in modules.
Definition: BaseDecimaterT.hh:117
Decimater framework.
Definition: DecimaterT.hh:78
Mixed decimater framework.
Definition: MixedDecimaterT.hh:76
Multiple choice decimater framework.
Definition: McDecimaterT.hh:75
Definition: BaseDecimaterT.hh:82