54 #ifndef OPENMESH_TOOLS_MODPROGMESHT_HH 55 #define OPENMESH_TOOLS_MODPROGMESHT_HH 61 #include <OpenMesh/Core/Utils/Property.hh> 79 template <
class MeshT>
113 Base::mesh().add_property( idx_ );
120 Base::mesh().remove_property( idx_ );
123 const InfoList& pmi()
const 135 pmi_.push_back(
Info( _ci ) );
139 bool is_binary(
void)
const {
return true; }
168 bool write(
const std::string& _ofname );
175 void set_binary(
bool _b) {}
186 #if defined(OM_INCLUDE_TEMPLATES) && !defined(OPENMESH_DECIMATER_MODPROGMESH_CC) 187 #define OSG_MODPROGMESH_TEMPLATES 191 #endif // OPENMESH_TOOLS_PROGMESHT_HH defined const InfoList & infolist() const
Reference to collected information.
Definition: ModProgMeshT.hh:170
Collect progressive mesh information while decimating.
Definition: ModProgMeshT.hh:80
Mesh::VertexHandle v1
See CollapseInfoT::v1.
Definition: ModProgMeshT.hh:98
void postprocess_collapse(const CollapseInfo &_ci) override
Stores collapse information in a queue.
Definition: ModProgMeshT.hh:133
~ModProgMeshT()
Destructor.
Definition: ModProgMeshT.hh:118
Base class for all decimation modules.
Mesh::VertexHandle vr
See CollapseInfoT::vr.
Definition: ModProgMeshT.hh:100
Info(const CollapseInfo &_ci)
Initializing constructor copies appropriate handles from collapse information _ci.
Definition: ModProgMeshT.hh:93
Mesh::VertexHandle v0
See CollapseInfoT::v0.
Definition: ModProgMeshT.hh:97
#define DECIMATING_MODULE(Classname, MeshT, Name)
Convenience macro, to be used in derived modules The macro defines the types.
Definition: ModBaseT.hh:149
Base class for all decimation modules.
Definition: ModBaseT.hh:192
std::vector< Info > InfoList
Type of the list storing the progressive mesh info Info.
Definition: ModProgMeshT.hh:105
bool write(const std::string &_ofname)
Write progressive mesh data to a file in proprietary binary format .pm.
Definition: ModProgMeshT_impl.hh:82
ModProgMeshT(MeshT &_mesh)
Constructor.
Definition: ModProgMeshT.hh:111
Mesh::VertexHandle vl
See CollapseInfoT::vl.
Definition: ModProgMeshT.hh:99
Contains all the mesh ingredients like the polygonal mesh, the triangle mesh, different mesh kernels ...
Definition: MeshItems.hh:59
Kernel::VertexHandle VertexHandle
Handle for referencing the corresponding item.
Definition: PolyMeshT.hh:136
Stores information about a halfedge collapse.
Definition: CollapseInfoT.hh:74
Struct storing progressive mesh information.
Definition: ModProgMeshT.hh:89