19 #ifndef CHUNKYTRIMESH_H
20 #define CHUNKYTRIMESH_H
int rcGetChunksOverlappingRect(const rcChunkyTriMesh *cm, float bmin[2], float bmax[2], int *ids, const int maxIds)
Returns the chunk indices which overlap the input rectable.
Definition: ChunkyTriMesh.cpp:213
int rcGetChunksOverlappingSegment(const rcChunkyTriMesh *cm, float p[2], float q[2], int *ids, const int maxIds)
Returns the chunk indices which overlap the input segment.
Definition: ChunkyTriMesh.cpp:283
bool rcCreateChunkyTriMesh(const float *verts, const int *tris, int ntris, int trisPerChunk, rcChunkyTriMesh *cm)
Creates partitioned triangle mesh (AABB tree), where each node contains at max trisPerChunk triangles...
Definition: ChunkyTriMesh.cpp:142
Definition: ChunkyTriMesh.h:23
int n
Definition: ChunkyTriMesh.h:27
float bmax[2]
Definition: ChunkyTriMesh.h:25
float bmin[2]
Definition: ChunkyTriMesh.h:24
int i
Definition: ChunkyTriMesh.h:26
Definition: ChunkyTriMesh.h:31
rcChunkyTriMesh()
Definition: ChunkyTriMesh.h:32
int * tris
Definition: ChunkyTriMesh.h:37
int ntris
Definition: ChunkyTriMesh.h:38
int maxTrisPerChunk
Definition: ChunkyTriMesh.h:39
rcChunkyTriMeshNode * nodes
Definition: ChunkyTriMesh.h:35
int nnodes
Definition: ChunkyTriMesh.h:36
~rcChunkyTriMesh()
Definition: ChunkyTriMesh.h:33