52 #ifndef OPENMESH_TOOLS_MODPROGMESHT_HH
53 #define OPENMESH_TOOLS_MODPROGMESHT_HH
59 #include <OpenMesh/Core/Utils/Property.hh>
77 template <
class MeshT>
95 typename Mesh::VertexHandle
v0;
96 typename Mesh::VertexHandle
v1;
97 typename Mesh::VertexHandle
vl;
98 typename Mesh::VertexHandle
vr;
111 Base::mesh().add_property( idx_ );
118 Base::mesh().remove_property( idx_ );
121 const InfoList& pmi()
const
133 pmi_.push_back(
Info( _ci ) );
137 bool is_binary(
void)
const {
return true; }
166 bool write(
const std::string& _ofname );
173 void set_binary(
bool _b) {}
184 #if defined(OM_INCLUDE_TEMPLATES) && !defined(OPENMESH_DECIMATER_MODPROGMESH_CC)
185 #define OSG_MODPROGMESH_TEMPLATES
189 #endif // OPENMESH_TOOLS_PROGMESHT_HH defined
bool write(const std::string &_ofname)
Write progressive mesh data to a file in proprietary binary format .pm.
Definition: ModProgMeshT.cc:80
#define DECIMATING_MODULE(Classname, MeshT, Name)
Convenience macro, to be used in derived modules The macro defines the types.
Definition: ModBaseT.hh:147
Mesh::VertexHandle v1
See CollapseInfoT::v1.
Definition: ModProgMeshT.hh:96
Stores information about a halfedge collapse.
Definition: CollapseInfoT.hh:73
Base class for all decimation modules.
Definition: ModBaseT.hh:190
Struct storing progressive mesh information.
Definition: ModProgMeshT.hh:87
Mesh::VertexHandle vr
See CollapseInfoT::vr.
Definition: ModProgMeshT.hh:98
Contains all the mesh ingredients like the polygonal mesh, the triangle mesh, different mesh kernels ...
Definition: MeshItems.hh:56
const InfoList & infolist() const
Reference to collected information.
Definition: ModProgMeshT.hh:168
Mesh::VertexHandle v0
See CollapseInfoT::v0.
Definition: ModProgMeshT.hh:95
Mesh::VertexHandle vl
See CollapseInfoT::vl.
Definition: ModProgMeshT.hh:97
Collect progressive mesh information while decimating.
Definition: ModProgMeshT.hh:78
void postprocess_collapse(const CollapseInfo &_ci)
Stores collapse information in a queue.
Definition: ModProgMeshT.hh:131
ModProgMeshT(MeshT &_mesh)
Constructor.
Definition: ModProgMeshT.hh:109
Info(const CollapseInfo &_ci)
Initializing constructor copies appropriate handles from collapse information _ci.
Definition: ModProgMeshT.hh:91
std::vector< Info > InfoList
Type of the list storing the progressive mesh info Info.
Definition: ModProgMeshT.hh:103
Base class for all decimation modules.
~ModProgMeshT()
Destructor.
Definition: ModProgMeshT.hh:116