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;
101 size_t decimate(
const size_t _n_collapses,
const float _mc_factor );
106 return ( (_n_vertices < this->
mesh().n_vertices()) ?
107 decimate( this->
mesh().n_vertices() - _n_vertices, _mc_factor ) : 0 );
114 size_t decimate_to_faces(
const size_t _n_vertices=0,
const size_t _n_faces=0 ,
const float _mc_factor = 0.8);
124 #if defined(OM_INCLUDE_TEMPLATES) && !defined(OPENMESH_MIXED_DECIMATER_DECIMATERT_CC) 125 #define OPENMESH_MIXED_DECIMATER_TEMPLATES 129 #endif // OPENMESH_MIXED_DECIMATER_DECIMATERT_HH
Base class for all decimation modules.
Definition: ModBaseT.hh:192
size_t decimate_to(size_t _n_vertices, const float _mc_factor)
Decimate to target complexity, returns number of collapses.
Definition: MixedDecimaterT.hh:104
Definition: BaseDecimaterT.hh:85
Mesh & mesh()
access mesh. used in modules.
Definition: BaseDecimaterT.hh:138
Mixed decimater framework.
Definition: MixedDecimaterT.hh:77
MixedDecimaterT(Mesh &_mesh)
Constructor.
Definition: MixedDecimaterT_impl.hh:71
Contains all the mesh ingredients like the polygonal mesh, the triangle mesh, different mesh kernels ...
Definition: MeshItems.hh:59
Decimater framework.
Definition: DecimaterT.hh:78
~MixedDecimaterT()
Destructor.
Definition: MixedDecimaterT_impl.hh:79
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_impl.hh:109
Multiple choice decimater framework.
Definition: McDecimaterT.hh:77
Stores information about a halfedge collapse.
Definition: CollapseInfoT.hh:74
size_t decimate(const size_t _n_collapses, const float _mc_factor)
Decimate (perform _n_collapses collapses).
Definition: MixedDecimaterT_impl.hh:85