59#ifndef OPENMESH_TOOLS_MODPROGMESHT_HH
60#define OPENMESH_TOOLS_MODPROGMESHT_HH
66#include <OpenMesh/Core/Utils/Property.hh>
98 Info(
const CollapseInfo& _ci )
118 Base::mesh().add_property( idx_ );
125 Base::mesh().remove_property( idx_ );
128 const InfoList& pmi()
const
140 pmi_.push_back(
Info( _ci ) );
144 bool is_binary(
void)
const {
return true; }
173 bool write(
const std::string& _ofname );
180 void set_binary(
bool _b) {}
191#if defined(OM_INCLUDE_TEMPLATES) && !defined(OPENMESH_DECIMATER_MODPROGMESH_CC)
192#define OSG_MODPROGMESH_TEMPLATES
Base class for all decimation modules.
#define DECIMATING_MODULE(Classname, MeshT, Name)
Convenience macro, to be used in derived modules The macro defines the types.
Definition: ModBaseT.hh:154
Contains all the mesh ingredients like the polygonal mesh, the triangle mesh, different mesh kernels ...
Definition: MeshItems.hh:64
Kernel::VertexHandle VertexHandle
Handle for referencing the corresponding item.
Definition: PolyMeshT.hh:139
Handle representing a vertex property.
Definition: Property.hh:488
Base class for all decimation modules.
Definition: ModBaseT.hh:198
Collect progressive mesh information while decimating.
Definition: ModProgMeshT.hh:86
void postprocess_collapse(const CollapseInfo &_ci)
Stores collapse information in a queue.
Definition: ModProgMeshT.hh:138
std::vector< Info > InfoList
Type of the list storing the progressive mesh info Info.
Definition: ModProgMeshT.hh:110
const InfoList & infolist() const
Reference to collected information.
Definition: ModProgMeshT.hh:175
~ModProgMeshT()
Destructor.
Definition: ModProgMeshT.hh:123
ModProgMeshT(MeshT &_mesh)
Constructor.
Definition: ModProgMeshT.hh:116
Struct storing progressive mesh information.
Definition: ModProgMeshT.hh:95
Mesh::VertexHandle vl
See CollapseInfoT::vl.
Definition: ModProgMeshT.hh:104
Mesh::VertexHandle v1
See CollapseInfoT::v1.
Definition: ModProgMeshT.hh:103
Mesh::VertexHandle vr
See CollapseInfoT::vr.
Definition: ModProgMeshT.hh:105
Mesh::VertexHandle v0
See CollapseInfoT::v0.
Definition: ModProgMeshT.hh:102
Info(const CollapseInfo &_ci)
Initializing constructor copies appropriate handles from collapse information _ci.
Definition: ModProgMeshT.hh:98