Visualization Library v1.0.3A lightweight C++ OpenGL middleware for 2D/3D graphics |
[Download] [Tutorials] [All Classes] [Grouped Classes] |
The quadric error metric as defined by PolygonSimplifier. More...
#include <PolygonSimplifier.hpp>
Public Member Functions | |
QErr () | |
QErr (const dvec3 &n, double d, double w=1.0) | |
dmat3 | matrix () const |
dvec3 | vector () const |
double | offset () const |
double | evaluate (const dvec3 &v) const |
bool | analyticSolution (dvec3 &v) const |
QErr | operator+ (const QErr &other) |
const QErr & | operator+= (const QErr &other) |
Protected Attributes | |
double | a2 |
double | ab |
double | ac |
double | ad |
double | b2 |
double | bc |
double | bd |
double | c2 |
double | cd |
double | d2 |
The quadric error metric as defined by PolygonSimplifier.
Definition at line 62 of file PolygonSimplifier.hpp.
vl::PolygonSimplifier::QErr::QErr | ( | ) | [inline] |
Definition at line 65 of file PolygonSimplifier.hpp.
vl::PolygonSimplifier::QErr::QErr | ( | const dvec3 & | n, |
double | d, | ||
double | w = 1.0 |
||
) | [inline] |
Definition at line 79 of file PolygonSimplifier.hpp.
References VL_CHECK, vl::Vector3< T_Scalar >::x(), vl::Vector3< T_Scalar >::y(), and vl::Vector3< T_Scalar >::z().
dmat3 vl::PolygonSimplifier::QErr::matrix | ( | ) | const [inline] |
Definition at line 96 of file PolygonSimplifier.hpp.
dvec3 vl::PolygonSimplifier::QErr::vector | ( | ) | const [inline] |
Definition at line 104 of file PolygonSimplifier.hpp.
double vl::PolygonSimplifier::QErr::offset | ( | ) | const [inline] |
Definition at line 109 of file PolygonSimplifier.hpp.
double vl::PolygonSimplifier::QErr::evaluate | ( | const dvec3 & | v ) | const [inline] |
Definition at line 114 of file PolygonSimplifier.hpp.
References vl::Vector3< T_Scalar >::x(), vl::Vector3< T_Scalar >::y(), and vl::Vector3< T_Scalar >::z().
Referenced by vl::PolygonSimplifier::computeCollapseInfo().
bool vl::PolygonSimplifier::QErr::analyticSolution | ( | dvec3 & | v ) | const [inline] |
Definition at line 122 of file PolygonSimplifier.hpp.
References vl::Matrix3< T_Scalar >::getInverse().
Referenced by vl::PolygonSimplifier::computeCollapseInfo().
double vl::PolygonSimplifier::QErr::a2 [protected] |
Definition at line 183 of file PolygonSimplifier.hpp.
Referenced by operator+(), and operator+=().
double vl::PolygonSimplifier::QErr::ab [protected] |
Definition at line 183 of file PolygonSimplifier.hpp.
Referenced by operator+(), and operator+=().
double vl::PolygonSimplifier::QErr::ac [protected] |
Definition at line 183 of file PolygonSimplifier.hpp.
Referenced by operator+(), and operator+=().
double vl::PolygonSimplifier::QErr::ad [protected] |
Definition at line 183 of file PolygonSimplifier.hpp.
Referenced by operator+(), and operator+=().
double vl::PolygonSimplifier::QErr::b2 [protected] |
Definition at line 184 of file PolygonSimplifier.hpp.
Referenced by operator+(), and operator+=().
double vl::PolygonSimplifier::QErr::bc [protected] |
Definition at line 184 of file PolygonSimplifier.hpp.
Referenced by operator+(), and operator+=().
double vl::PolygonSimplifier::QErr::bd [protected] |
Definition at line 184 of file PolygonSimplifier.hpp.
Referenced by operator+(), and operator+=().
double vl::PolygonSimplifier::QErr::c2 [protected] |
Definition at line 185 of file PolygonSimplifier.hpp.
Referenced by operator+(), and operator+=().
double vl::PolygonSimplifier::QErr::cd [protected] |
Definition at line 185 of file PolygonSimplifier.hpp.
Referenced by operator+(), and operator+=().
double vl::PolygonSimplifier::QErr::d2 [protected] |
Definition at line 186 of file PolygonSimplifier.hpp.
Referenced by operator+(), and operator+=().