Planeshift
dtMeshHeader Struct Reference

Provides high level information related to a dtMeshTile object. More...

#include <DetourNavMesh.h>

Public Attributes

float bmax [3]
 The maximum bounds of the tile's AABB. [(x, y, z)]. More...
 
float bmin [3]
 The minimum bounds of the tile's AABB. [(x, y, z)]. More...
 
int bvNodeCount
 The number of bounding volume nodes. (Zero if bounding volumes are disabled.) More...
 
float bvQuantFactor
 The bounding volume quantization factor. More...
 
int detailMeshCount
 The number of sub-meshes in the detail mesh. More...
 
int detailTriCount
 The number of triangles in the detail mesh. More...
 
int detailVertCount
 The number of unique vertices in the detail mesh. (In addition to the polygon vertices.) More...
 
int layer
 The layer of the tile within the dtNavMesh tile grid. (x, y, layer) More...
 
int magic
 Tile magic number. (Used to identify the data format.) More...
 
int maxLinkCount
 The number of allocated links. More...
 
int offMeshBase
 The index of the first polygon which is an off-mesh connection. More...
 
int offMeshConCount
 The number of off-mesh connections. More...
 
int polyCount
 The number of polygons in the tile. More...
 
unsigned int userId
 The user defined id of the tile. More...
 
int version
 Tile data format version number. More...
 
int vertCount
 The number of vertices in the tile. More...
 
float walkableClimb
 The maximum climb height of the agents using the tile. More...
 
float walkableHeight
 The height of the agents using the tile. More...
 
float walkableRadius
 The radius of the agents using the tile. More...
 
int x
 The x-position of the tile within the dtNavMesh tile grid. (x, y, layer) More...
 
int y
 The y-position of the tile within the dtNavMesh tile grid. (x, y, layer) More...
 

Detailed Description

Provides high level information related to a dtMeshTile object.

Definition at line 196 of file DetourNavMesh.h.

Member Data Documentation

float dtMeshHeader::bmax[3]

The maximum bounds of the tile's AABB. [(x, y, z)].

Definition at line 220 of file DetourNavMesh.h.

float dtMeshHeader::bmin[3]

The minimum bounds of the tile's AABB. [(x, y, z)].

Definition at line 219 of file DetourNavMesh.h.

int dtMeshHeader::bvNodeCount

The number of bounding volume nodes. (Zero if bounding volumes are disabled.)

Definition at line 213 of file DetourNavMesh.h.

float dtMeshHeader::bvQuantFactor

The bounding volume quantization factor.

This value is used for converting between world and bounding volume coordinates. For example:

const float cs = 1.0f / tile->header->bvQuantFactor;
const dtBVNode* n = &tile->bvTree[i];
if (n->i >= 0)
{
// This is a leaf node.
float worldMinX = tile->header->bmin[0] + n->bmin[0]*cs;
float worldMinY = tile->header->bmin[0] + n->bmin[1]*cs;
// Etc...
}

Definition at line 223 of file DetourNavMesh.h.

int dtMeshHeader::detailMeshCount

The number of sub-meshes in the detail mesh.

Definition at line 207 of file DetourNavMesh.h.

int dtMeshHeader::detailTriCount

The number of triangles in the detail mesh.

Definition at line 212 of file DetourNavMesh.h.

int dtMeshHeader::detailVertCount

The number of unique vertices in the detail mesh. (In addition to the polygon vertices.)

Definition at line 210 of file DetourNavMesh.h.

int dtMeshHeader::layer

The layer of the tile within the dtNavMesh tile grid. (x, y, layer)

Definition at line 202 of file DetourNavMesh.h.

int dtMeshHeader::magic

Tile magic number. (Used to identify the data format.)

Definition at line 198 of file DetourNavMesh.h.

int dtMeshHeader::maxLinkCount

The number of allocated links.

Definition at line 206 of file DetourNavMesh.h.

int dtMeshHeader::offMeshBase

The index of the first polygon which is an off-mesh connection.

Definition at line 215 of file DetourNavMesh.h.

int dtMeshHeader::offMeshConCount

The number of off-mesh connections.

Definition at line 214 of file DetourNavMesh.h.

int dtMeshHeader::polyCount

The number of polygons in the tile.

Definition at line 204 of file DetourNavMesh.h.

unsigned int dtMeshHeader::userId

The user defined id of the tile.

Definition at line 203 of file DetourNavMesh.h.

int dtMeshHeader::version

Tile data format version number.

Definition at line 199 of file DetourNavMesh.h.

int dtMeshHeader::vertCount

The number of vertices in the tile.

Definition at line 205 of file DetourNavMesh.h.

float dtMeshHeader::walkableClimb

The maximum climb height of the agents using the tile.

Definition at line 218 of file DetourNavMesh.h.

float dtMeshHeader::walkableHeight

The height of the agents using the tile.

Definition at line 216 of file DetourNavMesh.h.

float dtMeshHeader::walkableRadius

The radius of the agents using the tile.

Definition at line 217 of file DetourNavMesh.h.

int dtMeshHeader::x

The x-position of the tile within the dtNavMesh tile grid. (x, y, layer)

Definition at line 200 of file DetourNavMesh.h.

int dtMeshHeader::y

The y-position of the tile within the dtNavMesh tile grid. (x, y, layer)

Definition at line 201 of file DetourNavMesh.h.


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