#include <OpenFlipper/libs_required/OpenMesh/src/OpenMesh/Tools/Decimater/DecimaterT.hh>
|
| | DecimaterT (Mesh &_mesh) |
| | Constructor.
|
| |
| | ~DecimaterT () |
| | Destructor.
|
| |
| size_t | decimate (size_t _n_collapses=0, bool _only_selected=false) |
| | Perform a number of collapses on the mesh.
|
| |
| size_t | decimate_to (size_t _n_vertices, bool _only_selected=false) |
| | Decimate the mesh to a desired target vertex complexity.
|
| |
| size_t | decimate_to_faces (size_t _n_vertices=0, size_t _n_faces=0, bool _only_selected=false) |
| | Attempts to decimate the mesh until a desired vertex or face complexity is achieved.
|
| |
| | BaseDecimaterT (Mesh &_mesh) |
| |
| bool | initialize () |
| |
| bool | is_initialized () const |
| | Returns whether decimater has been successfully initialized.
|
| |
| void | info (std::ostream &_os) |
| | Print information about modules to _os.
|
| |
| void | set_observer (Observer *_o) |
| | Add observer.
|
| |
| Observer * | observer () |
| | Get current observer of a decimater.
|
| |
| Mesh & | mesh () |
| | access mesh. used in modules.
|
| |
| template<typename _Module > |
| bool | add (ModHandleT< _Module > &_mh) |
| | add module to decimater
|
| |
| template<typename _Module > |
| bool | remove (ModHandleT< _Module > &_mh) |
| | remove module
|
| |
| template<typename Module > |
| Module & | module (ModHandleT< Module > &_mh) |
| | get module referenced by handle _mh
|
| |
|
| void | heap_vertex (VertexHandle _vh) |
| | Insert vertex in heap.
|
| |
template<typename
MeshT>
class OpenMesh::Decimater::DecimaterT< MeshT >
Decimater framework.
- See also
- BaseModT, Mesh Decimation Framework
Definition at line 78 of file DecimaterT.hh.
◆ CollapseInfo
template<typename
MeshT >
◆ DeciHeap
template<typename
MeshT >
◆ HalfedgeHandle
template<typename
MeshT >
◆ Mesh
template<typename
MeshT >
◆ Module
template<typename
MeshT >
◆ ModuleList
template<typename
MeshT >
◆ ModuleListIterator
template<typename
MeshT >
◆ Self
template<typename
MeshT >
◆ VertexHandle
template<typename
MeshT >
◆ DecimaterT()
◆ ~DecimaterT()
◆ decimate()
Perform a number of collapses on the mesh.
- Parameters
-
| _n_collapses | Desired number of collapses. If zero (default), attempt to do as many collapses as possible. |
| _only_selected | Only consider vertices which are selected for decimation |
- Returns
- Number of collapses that were actually performed.
- Note
- This operation only marks the removed mesh elements for deletion. In order to actually remove the decimated elements from the mesh, a subsequent call to ArrayKernel::garbage_collection() is required.
Definition at line 150 of file DecimaterT_impl.hh.
◆ decimate_to()
template<typename
MeshT >
Decimate the mesh to a desired target vertex complexity.
- Parameters
-
| _n_vertices | Target complexity, i.e. desired number of remaining vertices after decimation. |
| _only_selected | Only consider vertices which are selected for decimation |
- Returns
- Number of collapses that were actually performed.
- Note
- This operation only marks the removed mesh elements for deletion. In order to actually remove the decimated elements from the mesh, a subsequent call to ArrayKernel::garbage_collection() is required.
Definition at line 121 of file DecimaterT.hh.
◆ decimate_to_faces()
Attempts to decimate the mesh until a desired vertex or face complexity is achieved.
- Parameters
-
| _n_vertices | Target vertex complexity. |
| _n_faces | Target face complexity. |
| _only_selected | Only consider vertices which are selected for decimation |
- Returns
- Number of collapses that were actually performed.
- Note
- Decimation stops as soon as either one of the two complexity bounds is satisfied.
-
This operation only marks the removed mesh elements for deletion. In order to actually remove the decimated elements from the mesh, a subsequent call to ArrayKernel::garbage_collection() is required.
Definition at line 259 of file DecimaterT_impl.hh.
◆ heap_vertex()
◆ collapse_target_
template<typename
MeshT >
◆ heap_
template<typename
MeshT >
◆ heap_position_
template<typename
MeshT >
◆ mesh_
template<typename
MeshT >
◆ priority_
template<typename
MeshT >
The documentation for this class was generated from the following files:
- OpenFlipper/libs_required/OpenMesh/src/OpenMesh/Tools/Decimater/DecimaterT.hh
- OpenFlipper/libs_required/OpenMesh/src/OpenMesh/Tools/Decimater/DecimaterT_impl.hh