Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | Related Pages

Edge Class Reference

#include <polygon.h>

Collaboration diagram for Edge:

Collaboration graph
[legend]
List of all members.

Detailed Description

Primitive class for edges An edge is simply two connected vertices. Object of this class will be used in meshes to precaclulate edges and their dependencies for use in shadow volume generation. This class only holds two indices into some vertex array the owner will have to implement (probably indices into a VertexBuffer), a polygon (index into a polygon array) and some internal flags. An edge is shared by two polygons, we do not allow non-manifold meshes.

Author:
Mattias Jansson (mattias@realityrift.com)


Public Member Functions

 Edge ()

Public Attributes

unsigned short m_usVertices [2]
unsigned int m_uiPolygon
Edgem_pkNeighbour
int m_iVisible


Constructor & Destructor Documentation

Edge  )  [inline]
 

Reset flags and data


Member Data Documentation

unsigned short m_usVertices[2]
 

Vertices defining this edge

unsigned int m_uiPolygon
 

Polygon this edge belongs to

Edge* m_pkNeighbour
 

Edge sharing vertices with this edge (m_pkNeighbour->m_iPolygon is neighbour polygon)

int m_iVisible
 

Visible flag (-1 invisible, 0 not calculated, 1 visible). Used internally during rendering of shadow volumes


The documentation for this class was generated from the following file:
Generated on Wed Jan 21 14:21:13 2004 for NeoEngine by doxygen 1.3.5