Visualization Library 2.1.0

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Public Member Functions | Protected Attributes | List of all members
vl::PolygonSimplifier::QErr Class Reference

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 QErroperator+= (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
 

Detailed Description

The quadric error metric as defined by PolygonSimplifier.

Definition at line 62 of file PolygonSimplifier.hpp.

Constructor & Destructor Documentation

◆ QErr() [1/2]

vl::PolygonSimplifier::QErr::QErr ( )
inline

Definition at line 65 of file PolygonSimplifier.hpp.

◆ QErr() [2/2]

vl::PolygonSimplifier::QErr::QErr ( const dvec3 n,
double  d,
double  w = 1.0 
)
inline

Member Function Documentation

◆ analyticSolution()

bool vl::PolygonSimplifier::QErr::analyticSolution ( dvec3 v) const
inline

◆ evaluate()

double vl::PolygonSimplifier::QErr::evaluate ( const dvec3 v) const
inline

◆ matrix()

dmat3 vl::PolygonSimplifier::QErr::matrix ( ) const
inline

Definition at line 96 of file PolygonSimplifier.hpp.

◆ offset()

double vl::PolygonSimplifier::QErr::offset ( ) const
inline

Definition at line 109 of file PolygonSimplifier.hpp.

◆ operator+()

QErr vl::PolygonSimplifier::QErr::operator+ ( const QErr other)
inline

Definition at line 150 of file PolygonSimplifier.hpp.

References a2, ab, ac, ad, b2, bc, bd, c2, cd, and d2.

◆ operator+=()

const QErr& vl::PolygonSimplifier::QErr::operator+= ( const QErr other)
inline

Definition at line 166 of file PolygonSimplifier.hpp.

References a2, ab, ac, ad, b2, bc, bd, c2, cd, and d2.

◆ vector()

dvec3 vl::PolygonSimplifier::QErr::vector ( ) const
inline

Definition at line 104 of file PolygonSimplifier.hpp.

Member Data Documentation

◆ a2

double vl::PolygonSimplifier::QErr::a2
protected

Definition at line 183 of file PolygonSimplifier.hpp.

Referenced by operator+(), and operator+=().

◆ ab

double vl::PolygonSimplifier::QErr::ab
protected

Definition at line 183 of file PolygonSimplifier.hpp.

Referenced by operator+(), and operator+=().

◆ ac

double vl::PolygonSimplifier::QErr::ac
protected

Definition at line 183 of file PolygonSimplifier.hpp.

Referenced by operator+(), and operator+=().

◆ ad

double vl::PolygonSimplifier::QErr::ad
protected

Definition at line 183 of file PolygonSimplifier.hpp.

Referenced by operator+(), and operator+=().

◆ b2

double vl::PolygonSimplifier::QErr::b2
protected

Definition at line 184 of file PolygonSimplifier.hpp.

Referenced by operator+(), and operator+=().

◆ bc

double vl::PolygonSimplifier::QErr::bc
protected

Definition at line 184 of file PolygonSimplifier.hpp.

Referenced by operator+(), and operator+=().

◆ bd

double vl::PolygonSimplifier::QErr::bd
protected

Definition at line 184 of file PolygonSimplifier.hpp.

Referenced by operator+(), and operator+=().

◆ c2

double vl::PolygonSimplifier::QErr::c2
protected

Definition at line 185 of file PolygonSimplifier.hpp.

Referenced by operator+(), and operator+=().

◆ cd

double vl::PolygonSimplifier::QErr::cd
protected

Definition at line 185 of file PolygonSimplifier.hpp.

Referenced by operator+(), and operator+=().

◆ d2

double vl::PolygonSimplifier::QErr::d2
protected

Definition at line 186 of file PolygonSimplifier.hpp.

Referenced by operator+(), and operator+=().


The documentation for this class was generated from the following file: