Planeshift
|
Go to the source code of this file.
Classes | |
struct | rcChunkyTriMesh |
struct | rcChunkyTriMeshNode |
Functions | |
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. | |
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. | |
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. |
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.
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.