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 | Friends

vl::PolygonSimplifier::Triangle Class Reference

A Triangle as defined by PolygonSimplifier. More...

#include <PolygonSimplifier.hpp>

List of all members.

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

Protected Attributes

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

Friends

class PolygonSimplifier
class Vertex

Detailed Description

A Triangle as defined by PolygonSimplifier.

Definition at line 192 of file PolygonSimplifier.hpp.


Constructor & Destructor Documentation

vl::PolygonSimplifier::Triangle::Triangle (  ) [inline]

Definition at line 197 of file PolygonSimplifier.hpp.

References NULL.


Member Function Documentation

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

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]
float vl::PolygonSimplifier::Triangle::computePotentialArea ( const Vertex oldv,
const Vertex newv 
) const [inline]
fvec3 vl::PolygonSimplifier::Triangle::computePotentialNormal ( const Vertex oldv,
const Vertex newv 
) const [inline]
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.


Friends And Related Function Documentation

friend class PolygonSimplifier [friend]

Definition at line 194 of file PolygonSimplifier.hpp.

friend class Vertex [friend]

Definition at line 195 of file PolygonSimplifier.hpp.


Member Data Documentation

generates the QErr

vertices of the triangle

Definition at line 227 of file PolygonSimplifier.hpp.

normal of the triangle

Definition at line 229 of file PolygonSimplifier.hpp.

ara of the triangle

has this triangle been removed?

Definition at line 233 of file PolygonSimplifier.hpp.


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.