|
Public Member Functions |
| void | buildBSPTree () |
| void | calcSplit (unsigned int &dim, float &splitpos, const Vector3 &min, const Vector3 &max) |
| void | findFirstIntersection (const Ray &ray, PTriangle &firstObject, float &t, float &u, float &v) |
| void | finishBSP () |
| void | get2NewBSPNodes () |
| bool | intersectAABBox (const Ray &ray, AABox &pBox, float &tmin, float &tmax) |
| void | makeLeaf (const long &offset, long *IDs, const long &numIDs) |
| void | recurseSplit (long offset, const Vector3 &min, const Vector3 &max, const int depth, long *IDs, const long &numIDs) |
Public Attributes |
| AABox | bbox |
| long | BSPleafcount |
| long | BSPmax |
| long | BSPmaxdepth |
| long | BSPpos |
| long | BSPsumdepth |
| long | BSPsumtris |
| char * | BSPTree |
| long * | IDlist |
| long | IDmax |
| long | IDpos |
| long | numTri |
| Array< PTriangle > | triangles |