116 int inum = imax - imin;
132 node.
i = items[imin].
i;
159 int isplit = imin+inum/2;
162 subdivide(items, nitems, imin, isplit, curNode, nodes);
164 subdivide(items, nitems, isplit, imax, curNode, nodes);
166 int iescape = curNode - icur;
unsigned short bmax[3]
Maximum bounds of the node's AABB. [(x, y, z)].
Definition: DetourNavMesh.h:216
static int compareItemX(const void *va, const void *vb)
Definition: DetourNavMeshBuilder.cpp:40
unsigned short bmax[3]
Definition: DetourNavMeshBuilder.cpp:36
int i
The node's index. (Negative for escape sequence.)
Definition: DetourNavMesh.h:217
Definition: DetourNavMesh.h:213
unsigned short bmin[3]
Minimum bounds of the node's AABB. [(x, y, z)].
Definition: DetourNavMesh.h:215
static void calcExtends(BVItem *items, const int, const int imin, const int imax, unsigned short *bmin, unsigned short *bmax)
Definition: DetourNavMeshBuilder.cpp:73
int i
Definition: DetourNavMeshBuilder.cpp:37
unsigned short bmin[3]
Definition: DetourNavMeshBuilder.cpp:35
static int compareItemZ(const void *va, const void *vb)
Definition: DetourNavMeshBuilder.cpp:62
int longestAxis(unsigned short x, unsigned short y, unsigned short z)
Definition: DetourNavMeshBuilder.cpp:97
static void subdivide(BVItem *items, int nitems, int imin, int imax, int &curNode, dtBVNode *nodes)
Definition: DetourNavMeshBuilder.cpp:114
Definition: DetourNavMeshBuilder.cpp:33
static int compareItemY(const void *va, const void *vb)
Definition: DetourNavMeshBuilder.cpp:51