OpenMesh::Decimater::ModProgMeshT< DecimaterType > Class Template Reference

Collect progressive mesh information while decimating. More...

#include <ModProgMeshT.hh>

Inheritance diagram for OpenMesh::Decimater::ModProgMeshT< DecimaterType >:

OpenMesh::Decimater::ModBaseT< DecimaterType > List of all members.

Public Types

typedef std::vector< InfoInfoList
 Type of the list storing the progressive mesh info Info.

Public Member Functions

 ModProgMeshT (DecimaterType &_dec)
 Constructor.
 ~ModProgMeshT ()
 Destructor.
void postprocess_collapse (const CollapseInfo &_ci)
 Stores collapse information in a queue.
bool is_binary (void) const
 Returns true if criteria returns a binary value.
void set_binary (bool _b)
 Set whether module is binary or not.
bool write (const std::string &_ofname)
 Write progressive mesh data to a file in proprietary binary format .pm.
const InfoListinfolist () const
 Reference to collected information.

Classes

struct  Info
 Struct storing progressive mesh information. More...

Detailed Description

template<class DecimaterType>
class OpenMesh::Decimater::ModProgMeshT< DecimaterType >

Collect progressive mesh information while decimating.

The progressive mesh data is stored in an internal structure, which can be evaluated after the decimation process and (!) before calling the garbage collection of the decimated mesh.


Member Function Documentation

template<class DecimaterType>
void OpenMesh::Decimater::ModProgMeshT< DecimaterType >::postprocess_collapse ( const CollapseInfo _ci  )  [inline]

Stores collapse information in a queue.

See also:
infolist()

template<class DecimaterType>
bool OpenMesh::Decimater::ModProgMeshT< DecimaterType >::write ( const std::string &  _ofname  ) 

Write progressive mesh data to a file in proprietary binary format .pm.

The methods uses the collected data to write a progressive mesh file. It's a binary format with little endian byte ordering:

Remarks:
Write file before calling the garbage collection of the mesh.
Parameters:
_ofname Name of the file, where to write the progressive mesh
Returns:
true on success of the operation, else false.


The documentation for this class was generated from the following files:
acg pic Project OpenMesh, ©  Computer Graphics Group, RWTH Aachen. Documentation generated using doxygen .