#include <DetourNavMesh.h>
Defines a polyogn within a dtMeshTile object.
unsigned char dtPoly::getArea |
( |
| ) |
const |
|
inline |
Gets the user defined area id.
unsigned char areaAndtype
Definition: DetourNavMesh.h:173
unsigned char dtPoly::getType |
( |
| ) |
const |
|
inline |
Gets the polygon type. (See: dtPolyTypes)
unsigned char areaAndtype
Definition: DetourNavMesh.h:173
void dtPoly::setArea |
( |
unsigned char |
a | ) |
|
|
inline |
Sets the user defined area id. [Limit: < DT_MAX_AREAS].
unsigned char areaAndtype
Definition: DetourNavMesh.h:173
void dtPoly::setType |
( |
unsigned char |
t | ) |
|
|
inline |
Sets the polygon type. (See: dtPolyTypes.)
unsigned char areaAndtype
Definition: DetourNavMesh.h:173
unsigned char dtPoly::areaAndtype |
The bit packed area id and polygon type.
- Note
- Use the structure's set and get methods to acess this value.
unsigned int dtPoly::firstLink |
Index to first link in linked list. (Or DT_NULL_LINK if there is no link.)
unsigned short dtPoly::flags |
The user defined polygon flags.
Packed data representing neighbor polygons references and flags for each edge.
Each entry represents data for the edge starting at the vertex of the same index. E.g. The entry at index n represents the edge data for vertex[n] to vertex[n+1].
A value of zero indicates the edge has no polygon connection. (It makes up the border of the navigation mesh.)
The information can be extracted as follows:
neighborRef =
neis[n] & 0xff;
if (
neis[n] & #DT_EX_LINK)
{
}
unsigned char dtPoly::vertCount |
The number of vertices in the polygon.
The indices of the polygon's vertices. The actual vertices are located in dtMeshTile::verts.
The documentation for this struct was generated from the following file: