Planeshift
Public Attributes

dtMeshTile Struct Reference

Defines a navigation mesh tile. More...

#include <DetourNavMesh.h>

List of all members.

Public Attributes

dtBVNodebvTree
 The tile bounding volume nodes. [Size: dtMeshHeader::bvNodeCount] (Will be null if bounding volumes are disabled.)
unsigned char * data
 The tile data. (Not directly accessed under normal situations.)
int dataSize
 Size of the tile data.
dtPolyDetaildetailMeshes
 The tile's detail sub-meshes. [Size: dtMeshHeader::detailMeshCount].
unsigned char * detailTris
 The detail mesh's triangles. [(vertA, vertB, vertC) * dtMeshHeader::detailTriCount].
floatdetailVerts
 The detail mesh's unique vertices. [(x, y, z) * dtMeshHeader::detailVertCount].
int flags
 Tile flags. (See: dtTileFlags)
dtMeshHeaderheader
 The tile header.
dtLinklinks
 The tile links. [Size: dtMeshHeader::maxLinkCount].
unsigned int linksFreeList
 Index to the next free link.
dtMeshTilenext
 The next free tile, or the next tile in the spatial grid.
dtOffMeshConnectionoffMeshCons
 The tile off-mesh connections. [Size: dtMeshHeader::offMeshConCount].
dtPolypolys
 The tile polygons. [Size: dtMeshHeader::polyCount].
unsigned int salt
 Counter describing modifications to the tile.
floatverts
 The tile vertices. [Size: dtMeshHeader::vertCount].

Detailed Description

Defines a navigation mesh tile.

Tiles generally only exist within the context of a dtNavMesh object.

Some tile content is optional. For example, a tile may not contain any off-mesh connections. In this case the associated pointer will be null.

If a detail mesh exists it will share vertices with the base polygon mesh. Only the vertices unique to the detail mesh will be stored in detailVerts.

Warning:
Tiles returned by a dtNavMesh object are not guarenteed to be populated. For example: The tile at a location might not have been loaded yet, or may have been removed. In this case, pointers will be null. So if in doubt, check the polygon count in the tile's header to determine if a tile has polygons defined.

Definition at line 228 of file DetourNavMesh.h.


Member Data Documentation

The tile bounding volume nodes. [Size: dtMeshHeader::bvNodeCount] (Will be null if bounding volumes are disabled.)

Definition at line 247 of file DetourNavMesh.h.

The tile data. (Not directly accessed under normal situations.)

Definition at line 251 of file DetourNavMesh.h.

Size of the tile data.

Definition at line 252 of file DetourNavMesh.h.

The tile's detail sub-meshes. [Size: dtMeshHeader::detailMeshCount].

Definition at line 237 of file DetourNavMesh.h.

The detail mesh's triangles. [(vertA, vertB, vertC) * dtMeshHeader::detailTriCount].

Definition at line 243 of file DetourNavMesh.h.

The detail mesh's unique vertices. [(x, y, z) * dtMeshHeader::detailVertCount].

Definition at line 240 of file DetourNavMesh.h.

Tile flags. (See: dtTileFlags)

Definition at line 253 of file DetourNavMesh.h.

The tile header.

Definition at line 233 of file DetourNavMesh.h.

The tile links. [Size: dtMeshHeader::maxLinkCount].

Definition at line 236 of file DetourNavMesh.h.

Index to the next free link.

Definition at line 232 of file DetourNavMesh.h.

The next free tile, or the next tile in the spatial grid.

Definition at line 254 of file DetourNavMesh.h.

The tile off-mesh connections. [Size: dtMeshHeader::offMeshConCount].

Definition at line 249 of file DetourNavMesh.h.

The tile polygons. [Size: dtMeshHeader::polyCount].

Definition at line 234 of file DetourNavMesh.h.

Counter describing modifications to the tile.

Definition at line 230 of file DetourNavMesh.h.

The tile vertices. [Size: dtMeshHeader::vertCount].

Definition at line 235 of file DetourNavMesh.h.


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