Support Forum G3D Web Page |
The leafs lump stores the leaves of the map's BSP tree. More...
Public Attributes | |
int | area |
AABox | bounds |
Bounding box on the leaf itself. More... | |
int | brushesCount |
Vector3 | center |
Redundant with bounds, but faster to read than compute during culling. More... | |
int | cluster |
int | facesCount |
Number of faces in this leaf. More... | |
int | firstBrush |
int | firstFace |
Index into BSP::faceArray of the first face in this leaf. More... | |
The leafs lump stores the leaves of the map's BSP tree.
Each leaf is a convex region that contains, among other things, a cluster index (for determining the other leaves's potentially visible from within the leaf), a list of faceArray (for rendering), and a list of brushes (for collision detection).
int G3D::_BSPMAP::BSPLeaf::area |
AABox G3D::_BSPMAP::BSPLeaf::bounds |
Bounding box on the leaf itself.
The faces referenced by a leaf may extend well beyond this box.
int G3D::_BSPMAP::BSPLeaf::brushesCount |
Vector3 G3D::_BSPMAP::BSPLeaf::center |
Redundant with bounds, but faster to read than compute during culling.
int G3D::_BSPMAP::BSPLeaf::cluster |
int G3D::_BSPMAP::BSPLeaf::facesCount |
Number of faces in this leaf.
int G3D::_BSPMAP::BSPLeaf::firstBrush |
int G3D::_BSPMAP::BSPLeaf::firstFace |
Index into BSP::faceArray of the first face in this leaf.
The same faces may appear in multiple leaves.