Visualization Library v1.0.3A lightweight C++ OpenGL middleware for 2D/3D graphics |
[Download] [Tutorials] [All Classes] [Grouped Classes] |
A Triangle as defined by PolygonSimplifier. More...
#include <PolygonSimplifier.hpp>
Public Member Functions | |
Triangle () | |
void | replaceVertex (Vertex *oldv, Vertex *newv) |
void | computeNormal () |
float | computeArea () const |
float | computePotentialArea (const Vertex *oldv, const Vertex *newv) const |
fvec3 | computePotentialNormal (const Vertex *oldv, const Vertex *newv) const |
bool | hasVertex (const Vertex *v) const |
bool | checkTriangle () const |
QErr | computeQErr () const |
const Vertex * | vertex (int index) const |
vertices of the triangle | |
Vertex * | vertex (int index) |
const fvec3 & | normal () const |
normal of the triangle | |
bool | removed () const |
ara of the triangle | |
Protected Attributes | |
Vertex * | mVertices [3] |
generates the QErr | |
fvec3 | mNormal |
normal of the triangle | |
bool | mRemoved |
ara of the triangle | |
Friends | |
class | PolygonSimplifier |
class | Vertex |
A Triangle as defined by PolygonSimplifier.
Definition at line 192 of file PolygonSimplifier.hpp.
vl::PolygonSimplifier::Triangle::Triangle | ( | ) | [inline] |
Definition at line 197 of file PolygonSimplifier.hpp.
References NULL.
Definition at line 586 of file PolygonSimplifier.hpp.
References VL_CHECK.
void vl::PolygonSimplifier::Triangle::computeNormal | ( | ) | [inline] |
Definition at line 577 of file PolygonSimplifier.hpp.
References vl::cross().
float vl::PolygonSimplifier::Triangle::computeArea | ( | ) | const [inline] |
Definition at line 555 of file PolygonSimplifier.hpp.
References vl::dot(), vl::length(), vl::Vector3< T_Scalar >::length(), and VL_CHECK.
float vl::PolygonSimplifier::Triangle::computePotentialArea | ( | const Vertex * | oldv, |
const Vertex * | newv | ||
) | const [inline] |
Definition at line 537 of file PolygonSimplifier.hpp.
References vl::dot(), vl::length(), vl::Vector3< T_Scalar >::length(), and vl::PolygonSimplifier::Vertex::mPosition.
fvec3 vl::PolygonSimplifier::Triangle::computePotentialNormal | ( | const Vertex * | oldv, |
const Vertex * | newv | ||
) | const [inline] |
Definition at line 509 of file PolygonSimplifier.hpp.
References vl::cross(), vl::PolygonSimplifier::Vertex::mPosition, and vl::Vector3< T_Scalar >::normalize().
bool vl::PolygonSimplifier::Triangle::hasVertex | ( | const Vertex * | v ) | const [inline] |
Definition at line 532 of file PolygonSimplifier.hpp.
Referenced by vl::PolygonSimplifier::computeCollapseInfo().
bool vl::PolygonSimplifier::Triangle::checkTriangle | ( | ) | const [inline] |
Definition at line 520 of file PolygonSimplifier.hpp.
References VL_CHECK.
PolygonSimplifier::QErr vl::PolygonSimplifier::Triangle::computeQErr | ( | ) | const [inline] |
Definition at line 501 of file PolygonSimplifier.hpp.
References vl::dot().
const Vertex* vl::PolygonSimplifier::Triangle::vertex | ( | int | index ) | const [inline] |
vertices of the triangle
Definition at line 215 of file PolygonSimplifier.hpp.
Referenced by vl::PolygonSimplifier::computeCollapseInfo().
Vertex* vl::PolygonSimplifier::Triangle::vertex | ( | int | index ) | [inline] |
Definition at line 216 of file PolygonSimplifier.hpp.
const fvec3& vl::PolygonSimplifier::Triangle::normal | ( | ) | const [inline] |
normal of the triangle
Definition at line 218 of file PolygonSimplifier.hpp.
Referenced by vl::PolygonSimplifier::computeCollapseInfo().
bool vl::PolygonSimplifier::Triangle::removed | ( | ) | const [inline] |
ara of the triangle
has this triangle been removed?
Definition at line 222 of file PolygonSimplifier.hpp.
friend class PolygonSimplifier [friend] |
Definition at line 194 of file PolygonSimplifier.hpp.
friend class Vertex [friend] |
Definition at line 195 of file PolygonSimplifier.hpp.
Vertex* vl::PolygonSimplifier::Triangle::mVertices[3] [protected] |
fvec3 vl::PolygonSimplifier::Triangle::mNormal [protected] |
normal of the triangle
Definition at line 229 of file PolygonSimplifier.hpp.
bool vl::PolygonSimplifier::Triangle::mRemoved [protected] |
ara of the triangle
has this triangle been removed?
Definition at line 233 of file PolygonSimplifier.hpp.