# Visualization Library A lightweight C++ OpenGL middleware for 2D/3D graphics | [Home] [Tutorials] [All Classes] [Grouped Classes]

# vl::PolygonSimplifier::Vertex Class Reference

A Vertex as defined by PolygonSimplifier. More...

`#include <PolygonSimplifier.hpp>`

List of all members.

## Public Member Functions
| Vertex ()
void | addAdjacentVertex (Vertex *v)
void | removeAdjacentVertex (Vertex *v)
void | computeAdjacentVertices ()
bool | checkConnectivity ()
bool | isAdjacentVertex (Vertex *) const
bool | isIncidentTriangle (Triangle *) const
void | discardRemovedTriangles ()
void | removeIncidentTriangle (const Triangle *)
bool | checkTriangles () const
void | computeEdgePenalty ()
const fvec3 & | position () const
| the position
int | adjacentVerticesCount () const
| ajacent vertices
Vertex * | adjacentVertex (int index) const
int | incidentTrianglesCount () const
| adjacent triangles
Triangle * | incidentTriangle (int index) const
Vertex * | collapseVertex () const
| vertex to which collapse
float | collapseCost () const
| cost of the collapse
const fvec3 & | collapsePosition () const
| collapse position
void | setCollapsePosition (const fvec3 &pos)
int | removeOrder () const
| when the vertex has collapsed
bool | removed () const
| has the vertex been removed
bool | isProtected () const
| is the vertex protected?
int | originalIndex () const
| original index of this vertex
int | simplifiedIndex () const
| Internally used to regenerated the index buffer.
bool | alreadyProcessed () const
| Internally used.
const QErr & | qerr () const
| Accumulated vertex error.
void | setQErr (const QErr &qerr)
void | addQErr (const QErr &qerr)
## Protected Attributes
QErr | mQErr
fvec3 | mPosition
| the position
std::vector< Vertex * > | mAdjacentVerts
| ajacent vertices
std::vector< Triangle * > | mIncidentTriangles
| adjacent triangles
Vertex * | mCollapseVertex
| vertex to which collapse
float | mCollapseCost
| cost of the collapse
fvec3 | mCollapsePosition
| the collapse position
int | mOriginalIndex
| original index of this vertex
int | mSimplifiedIndex
| only used during index buffer regeneration
int | mRemoveOrder
| when the vertex has collapsed
bool | mRemoved
| has the vertex been removed
bool | mProtected
| is the vertex protected?
bool | mAlreadyProcessed
| internally used
## Friends
class | Triangle
class | PolygonSimplifier

## Detailed Description

A Vertex as defined by PolygonSimplifier.

## Constructor & Destructor Documentation

vl::PolygonSimplifier::Vertex::Vertex | ( |  | ) | `[inline]`

## Member Function Documentation

void vl::PolygonSimplifier::Vertex::addAdjacentVertex | ( | Vertex * | v | ) | `[inline]`

void vl::PolygonSimplifier::Vertex::removeAdjacentVertex | ( | Vertex * | v | ) | `[inline]`

void vl::PolygonSimplifier::Vertex::computeAdjacentVertices | ( |  | ) | `[inline]`

bool vl::PolygonSimplifier::Vertex::checkConnectivity | ( |  | ) | `[inline]`

bool vl::PolygonSimplifier::Vertex::isAdjacentVertex | ( | Vertex * | v | ) | const`[inline]`

bool vl::PolygonSimplifier::Vertex::isIncidentTriangle | ( | Triangle * | t | ) | const`[inline]`

void vl::PolygonSimplifier::Vertex::discardRemovedTriangles | ( |  | ) | `[inline]`

void vl::PolygonSimplifier::Vertex::removeIncidentTriangle | ( | const Triangle * | tri | ) | `[inline]`

bool vl::PolygonSimplifier::Vertex::checkTriangles | ( |  | ) | const`[inline]`

void vl::PolygonSimplifier::Vertex::computeEdgePenalty | ( |  | ) | `[inline]`

const fvec3& vl::PolygonSimplifier::Vertex::position | ( |  | ) | const`[inline]`

the position

int vl::PolygonSimplifier::Vertex::adjacentVerticesCount | ( |  | ) | const`[inline]`

ajacent vertices

Vertex* vl::PolygonSimplifier::Vertex::adjacentVertex | ( | int | index | ) | const`[inline]`

int vl::PolygonSimplifier::Vertex::incidentTrianglesCount | ( |  | ) | const`[inline]`

adjacent triangles

Triangle* vl::PolygonSimplifier::Vertex::incidentTriangle | ( | int | index | ) | const`[inline]`

Vertex* vl::PolygonSimplifier::Vertex::collapseVertex | ( |  | ) | const`[inline]`

vertex to which collapse

float vl::PolygonSimplifier::Vertex::collapseCost | ( |  | ) | const`[inline]`

cost of the collapse

const fvec3& vl::PolygonSimplifier::Vertex::collapsePosition | ( |  | ) | const`[inline]`

collapse position

void vl::PolygonSimplifier::Vertex::setCollapsePosition | ( | const fvec3 & | pos | ) | `[inline]`

int vl::PolygonSimplifier::Vertex::removeOrder | ( |  | ) | const`[inline]`

when the vertex has collapsed

bool vl::PolygonSimplifier::Vertex::removed | ( |  | ) | const`[inline]`

has the vertex been removed

bool vl::PolygonSimplifier::Vertex::isProtected | ( |  | ) | const`[inline]`

is the vertex protected?

int vl::PolygonSimplifier::Vertex::originalIndex | ( |  | ) | const`[inline]`

original index of this vertex

int vl::PolygonSimplifier::Vertex::simplifiedIndex | ( |  | ) | const`[inline]`

Internally used to regenerated the index buffer.

bool vl::PolygonSimplifier::Vertex::alreadyProcessed | ( |  | ) | const`[inline]`

Internally used.

const QErr& vl::PolygonSimplifier::Vertex::qerr | ( |  | ) | const`[inline]`

Accumulated vertex error.

void vl::PolygonSimplifier::Vertex::setQErr | ( | const QErr & | qerr | ) | `[inline]`

void vl::PolygonSimplifier::Vertex::addQErr | ( | const QErr & | qerr | ) | `[inline]`

## Friends And Related Function Documentation

friend class Triangle`[friend]`

friend class PolygonSimplifier`[friend]`

## Member Data Documentation

QErr vl::PolygonSimplifier::Vertex::mQErr`[protected]`

fvec3 vl::PolygonSimplifier::Vertex::mPosition`[protected]`

the position

std::vector< Vertex* > vl::PolygonSimplifier::Vertex::mAdjacentVerts`[protected]`

ajacent vertices

std::vector< Triangle* > vl::PolygonSimplifier::Vertex::mIncidentTriangles`[protected]`

adjacent triangles

Vertex* vl::PolygonSimplifier::Vertex::mCollapseVertex`[protected]`

vertex to which collapse

float vl::PolygonSimplifier::Vertex::mCollapseCost`[protected]`

cost of the collapse

fvec3 vl::PolygonSimplifier::Vertex::mCollapsePosition`[protected]`

the collapse position

int vl::PolygonSimplifier::Vertex::mOriginalIndex`[protected]`

original index of this vertex

int vl::PolygonSimplifier::Vertex::mSimplifiedIndex`[protected]`

only used during index buffer regeneration

int vl::PolygonSimplifier::Vertex::mRemoveOrder`[protected]`

when the vertex has collapsed

bool vl::PolygonSimplifier::Vertex::mRemoved`[protected]`

has the vertex been removed

bool vl::PolygonSimplifier::Vertex::mProtected`[protected]`

is the vertex protected?

bool vl::PolygonSimplifier::Vertex::mAlreadyProcessed`[protected]`

internally used

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

- E:/VisualizationLibrary/BuildSystem/VL_DISTRO/Visualization_Library_SDK/src/vl/PolygonSimplifier.hpp

Visualization Library v2009.08 Reference Documentation
Copyright 2005-2009 Michele Bosi. All rights reserved.
Updated on Sun Nov 29 11:11:48 2009.
Permission is granted to use this page to write and publish articles regarding Visualization Library.