OpenMesh.Tools.Decimater.DecimaterT



class DecimaterT (MeshT);
Decimater framework.

See Also:
BaseModT, \ref decimater_docu

this(Mesh _mesh);
Constructor

bool initialize ();
Initialize decimater and decimating modules.

Return values: true ok false No ore more than one non-binary module exist. In that case the decimater is uninitialized!

bool is_initialized ();
Returns whether decimater has been successfully initialized.

void info (ostream _os);
Print information about modules to os

Mesh mesh ();
access mesh . used in modules.

template add (_Module)
add module to decimater

bool add (ref ModHandleT!(_Module) _mh);
add module to decimater

template remove (_Module)
remove module

bool remove (ref ModHandleT!(_Module) _mh);
remove module

template get_module (Module)
get module referenced by handle mh

Module get_module (ref ModHandleT!(Module) _mh);
get module referenced by handle mh

size_t decimate (size_t _n_collapses = 0);
Decimate (perform n_collapses collapses). Return number of performed collapses. If n_collapses is not given reduce as much as possible

size_t decimate_to (size_t _n_vertices);
Decimate to target complexity, returns number of collapses

struct HeapInterface ;
Heap interface

void heap_vertex (VertexHandle _vh, ref DeciHeap heap);
Insert vertex in heap

bool is_collapse_legal (ref CollapseInfo _ci);
Is an edge collapse legal? Performs topological test only.

The method evaluates the status bit Locked, Deleted, and Feature.

\attention The method temporarily sets the bit Tagged. After usage

the bit will be disabled!

float collapse_priority (ref CollapseInfo _ci);
Calculate priority of an halfedge collapse (using the modules)

void postprocess_collapse (ref CollapseInfo _ci);
Post-process a collapse

Page was generated with CanDyDOC on Fri Oct 12 16:12:21 2007