AI_NavigationMesh::Triangle Class Reference

#include <AI_NavigationMesh.h>

List of all members.


Detailed Description

Triangle of the navigation mesh.

Public Member Functions

 Triangle ()
 Default constructor.
bool addEdge (Edge *ptr_edge)
 Add edge into triangle.
void addPVS (Corner *ptr_corner)
 Add corner possibly visible from this triangle.
EdgegetEdgeOposedTo (const Vertex *ptr_vertex)
 Get triangle's edge that is oposed to given vertex.
EdgegetEdgeSharedVertex (const Vertex *ptr_vertex, const Edge *ptr_edge)
 Get triangle's edge that contains given vertex and is not given edge.
void getOtherEdges (const Edge *ptr_edge, Edge *ptr_edges[])
 Get all triangle's edges without given edge.

Protected Attributes

Vertexm_ptr_vertices [3]
 Vertices in CW order.
Edgem_ptr_edges [3]
 Edges.
CornerArray m_arr_pvs_corners
 Set of corners possibly visible from this trianlge.

Constructor & Destructor Documentation

AI_NavigationMesh::Triangle::Triangle (  )  [inline]

Default constructor.


Member Function Documentation

bool AI_NavigationMesh::Triangle::addEdge ( Edge ptr_edge  )  [inline]

Add edge into triangle.

void AI_NavigationMesh::Triangle::addPVS ( Corner ptr_corner  )  [inline]

Add corner possibly visible from this triangle.

AI_NavigationMesh::Edge * AI_NavigationMesh::Triangle::getEdgeOposedTo ( const Vertex ptr_vertex  )  [inline]

Get triangle's edge that is oposed to given vertex.

AI_NavigationMesh::Edge * AI_NavigationMesh::Triangle::getEdgeSharedVertex ( const Vertex ptr_vertex,
const Edge ptr_edge 
) [inline]

Get triangle's edge that contains given vertex and is not given edge.

void AI_NavigationMesh::Triangle::getOtherEdges ( const Edge ptr_edge,
Edge ptr_edges[] 
) [inline]

Get all triangle's edges without given edge.


Member Data Documentation

Vertices in CW order.

Edges.

Set of corners possibly visible from this trianlge.


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