Visualization Library 2.0.0-b3

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 | Friends | List of all members
vl::PolygonSimplifier::Triangle Class Reference

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 Vertexvertex (int index) const
 vertices of the triangle More...
 
Vertexvertex (int index)
 
const fvec3normal () const
 normal of the triangle More...
 
bool removed () const
 ara of the triangle More...
 

Protected Attributes

VertexmVertices [3]
 generates the QErr More...
 
fvec3 mNormal
 normal of the triangle More...
 
bool mRemoved
 ara of the triangle More...
 

Friends

class PolygonSimplifier
 
class Vertex
 

Detailed Description

A Triangle as defined by PolygonSimplifier.

Definition at line 192 of file PolygonSimplifier.hpp.

Constructor & Destructor Documentation

◆ Triangle()

vl::PolygonSimplifier::Triangle::Triangle ( )
inline

Definition at line 197 of file PolygonSimplifier.hpp.

References NULL.

Member Function Documentation

◆ checkTriangle()

bool vl::PolygonSimplifier::Triangle::checkTriangle ( ) const
inline

Definition at line 520 of file PolygonSimplifier.hpp.

References VL_CHECK.

◆ computeArea()

float vl::PolygonSimplifier::Triangle::computeArea ( ) const
inline

◆ computeNormal()

void vl::PolygonSimplifier::Triangle::computeNormal ( )
inline

Definition at line 577 of file PolygonSimplifier.hpp.

References vl::cross().

◆ computePotentialArea()

float vl::PolygonSimplifier::Triangle::computePotentialArea ( const Vertex oldv,
const Vertex newv 
) const
inline

◆ computePotentialNormal()

fvec3 vl::PolygonSimplifier::Triangle::computePotentialNormal ( const Vertex oldv,
const Vertex newv 
) const
inline

◆ computeQErr()

PolygonSimplifier::QErr vl::PolygonSimplifier::Triangle::computeQErr ( ) const
inline

Definition at line 501 of file PolygonSimplifier.hpp.

References vl::dot().

◆ hasVertex()

bool vl::PolygonSimplifier::Triangle::hasVertex ( const Vertex v) const
inline

Definition at line 532 of file PolygonSimplifier.hpp.

Referenced by vl::PolygonSimplifier::computeCollapseInfo().

◆ normal()

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

◆ removed()

bool vl::PolygonSimplifier::Triangle::removed ( ) const
inline

ara of the triangle

has this triangle been removed?

Definition at line 222 of file PolygonSimplifier.hpp.

◆ replaceVertex()

void vl::PolygonSimplifier::Triangle::replaceVertex ( Vertex oldv,
Vertex newv 
)
inline

Definition at line 586 of file PolygonSimplifier.hpp.

References VL_CHECK.

◆ vertex() [1/2]

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() [2/2]

Vertex* vl::PolygonSimplifier::Triangle::vertex ( int  index)
inline

Definition at line 216 of file PolygonSimplifier.hpp.

Friends And Related Function Documentation

◆ PolygonSimplifier

friend class PolygonSimplifier
friend

Definition at line 194 of file PolygonSimplifier.hpp.

◆ Vertex

friend class Vertex
friend

Definition at line 195 of file PolygonSimplifier.hpp.

Member Data Documentation

◆ mNormal

fvec3 vl::PolygonSimplifier::Triangle::mNormal
protected

normal of the triangle

Definition at line 229 of file PolygonSimplifier.hpp.

◆ mRemoved

bool vl::PolygonSimplifier::Triangle::mRemoved
protected

ara of the triangle

has this triangle been removed?

Definition at line 233 of file PolygonSimplifier.hpp.

◆ mVertices

Vertex* vl::PolygonSimplifier::Triangle::mVertices[3]
protected

generates the QErr

vertices of the triangle

Definition at line 227 of file PolygonSimplifier.hpp.


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