Visualization Library v1.0.3

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

vl::PolygonSimplifier::QErr Class Reference

The quadric error metric as defined by PolygonSimplifier. More...

#include <PolygonSimplifier.hpp>

List of all members.

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

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]

Member Function Documentation

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]
bool vl::PolygonSimplifier::QErr::analyticSolution ( dvec3 v ) const [inline]
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.

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.


Member Data Documentation

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+=().


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

Visualization Library v1.0.3 Reference Documentation
Copyright Michele Bosi. All rights reserved.
Updated on Tue Feb 7 2017 00:55:11.
Permission is granted to use this page to write and publish articles regarding Visualization Library.