#include <ModProgMeshT.hh>

Classes | |
| struct | Info |
Public Types | |
| typedef std::vector< Info > | InfoList |
| Type of the list storing the progressive mesh info Info. | |
Public Member Functions | |
| DECIMATING_MODULE (ModProgMeshT, DecimaterType, ProgMesh) | |
| const InfoList & | infolist () const |
| Reference to collected information. | |
| bool | is_binary (void) const |
| Returns true if criteria returns a binary value. | |
| ModProgMeshT (DecimaterType &_dec) | |
| Constructor. | |
| const InfoList & | pmi () const |
| void | postprocess_collapse (const CollapseInfo &_ci) |
| bool | write (const std::string &_ofname) |
| ~ModProgMeshT () | |
| Destructor. | |
Private Member Functions | |
| void | set_binary (bool _b) |
| Set whether module is binary or not. | |
Private Attributes | |
| VPropHandleT< int > | idx_ |
| InfoList | pmi_ |
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.
Definition at line 78 of file ModProgMeshT.hh.
| typedef std::vector<Info> OpenMesh::Decimater::ModProgMeshT< DecimaterType >::InfoList |
Type of the list storing the progressive mesh info Info.
Definition at line 103 of file ModProgMeshT.hh.
| OpenMesh::Decimater::ModProgMeshT< DecimaterType >::ModProgMeshT | ( | DecimaterType & | _dec | ) | [inline] |
Constructor.
Definition at line 109 of file ModProgMeshT.hh.
| OpenMesh::Decimater::ModProgMeshT< DecimaterType >::~ModProgMeshT | ( | ) | [inline] |
Destructor.
Definition at line 116 of file ModProgMeshT.hh.
| OpenMesh::Decimater::ModProgMeshT< DecimaterType >::DECIMATING_MODULE | ( | ModProgMeshT< DecimaterType > | , | |
| DecimaterType | , | |||
| ProgMesh | ||||
| ) |
| const InfoList& OpenMesh::Decimater::ModProgMeshT< DecimaterType >::infolist | ( | ) | const [inline] |
Reference to collected information.
Definition at line 168 of file ModProgMeshT.hh.
| bool OpenMesh::Decimater::ModProgMeshT< DecimaterType >::is_binary | ( | void | ) | const [inline] |
Returns true if criteria returns a binary value.
Reimplemented from OpenMesh::Decimater::ModBaseT< DecimaterType >.
Definition at line 137 of file ModProgMeshT.hh.
| const InfoList& OpenMesh::Decimater::ModProgMeshT< DecimaterType >::pmi | ( | ) | const [inline] |
Definition at line 121 of file ModProgMeshT.hh.
| void OpenMesh::Decimater::ModProgMeshT< DecimaterType >::postprocess_collapse | ( | const CollapseInfo & | _ci | ) | [inline] |
Stores collapse information in a queue.
Definition at line 131 of file ModProgMeshT.hh.
| void OpenMesh::Decimater::ModProgMeshT< DecimaterType >::set_binary | ( | bool | _b | ) | [inline, private] |
Set whether module is binary or not.
Reimplemented from OpenMesh::Decimater::ModBaseT< DecimaterType >.
Definition at line 173 of file ModProgMeshT.hh.
| bool OpenMesh::Decimater::ModProgMeshT< DecimaterType >::write | ( | const std::string & | _ofname | ) | [inline] |
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:
NV in the base mesh.[x,y,z][x,y,z]...[v0,v1,v2][v0,v1,v2]...v0, and 3 32-bit int indices for v1, vl, and vr. The index for vl or vr might be -1, if the face on this side of the edge does not exists.| _ofname | Name of the file, where to write the progressive mesh |
true on success of the operation, else false. Definition at line 75 of file ModProgMeshT.cc.
VPropHandleT<int> OpenMesh::Decimater::ModProgMeshT< DecimaterType >::idx_ [private] |
Definition at line 176 of file ModProgMeshT.hh.
InfoList OpenMesh::Decimater::ModProgMeshT< DecimaterType >::pmi_ [private] |
Definition at line 175 of file ModProgMeshT.hh.