The PolygonSimplifier class reduces the amount of polygons present in a Geometry using a quadric error metric.
More...
#include <PolygonSimplifier.hpp>
List of all members.
Detailed Description
The PolygonSimplifier class reduces the amount of polygons present in a Geometry using a quadric error metric.
The algorithm simplifies only the position array of the Geometry all the other vertex attributes will be discarded.
Constructor & Destructor Documentation
| vl::PolygonSimplifier::PolygonSimplifier |
( |
) |
[inline] |
Member Function Documentation
| virtual const char* vl::PolygonSimplifier::className |
( |
) |
[inline, virtual] |
Returns the name of the class.
Reimplemented from vl::Object.
| void PolygonSimplifier::simplify |
( |
float |
simplification_ratio, |
|
|
Geometry * |
geom |
|
) |
| |
| void PolygonSimplifier::simplify |
( |
int |
target_vertex_count, |
|
|
Geometry * |
geom |
|
) |
| |
| void PolygonSimplifier::simplify |
( |
int |
target_vertex_count, |
|
|
std::vector< fvec3 > & |
in_out_verts, |
|
|
std::vector< int > & |
in_out_tris |
|
) |
| |
| void vl::PolygonSimplifier::setProtectedVertices |
( |
const std::vector< int > & |
protected_verts ) |
[inline] |
| int vl::PolygonSimplifier::simplifiedVerticesCount |
( |
) |
const [inline] |
| Vertex* vl::PolygonSimplifier::simplifiedVertices |
( |
int |
index ) |
const [inline] |
| int vl::PolygonSimplifier::simplifiedTrianglesCount |
( |
) |
const [inline] |
| Triangle* vl::PolygonSimplifier::simplifiedTriangles |
( |
int |
index ) |
const [inline] |
| void PolygonSimplifier::clearTrianglesAndVertices |
( |
) |
|
| bool vl::PolygonSimplifier::removeDoubles |
( |
) |
const [inline] |
| void vl::PolygonSimplifier::setRemoveDoubles |
( |
bool |
remove_doubles ) |
[inline] |
| bool vl::PolygonSimplifier::verbose |
( |
) |
const [inline] |
| void vl::PolygonSimplifier::setVerbose |
( |
bool |
verbose ) |
[inline] |
| bool vl::PolygonSimplifier::quick |
( |
) |
const [inline] |
| void vl::PolygonSimplifier::setQuick |
( |
bool |
quick ) |
[inline] |
| void vl::PolygonSimplifier::collapse |
( |
Vertex * |
v ) |
[inline, protected] |
| void vl::PolygonSimplifier::computeCollapseInfo |
( |
Vertex * |
v ) |
[inline, protected] |
Member Data Documentation
The documentation for this class was generated from the following files: