Support Forum       G3D Web Page     
Public Attributes | List of all members
G3D::_BSPMAP::BSPLeaf Class Reference

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...
 

Detailed Description

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).

Member Data Documentation

◆ area

int G3D::_BSPMAP::BSPLeaf::area

◆ bounds

AABox G3D::_BSPMAP::BSPLeaf::bounds


Bounding box on the leaf itself.

The faces referenced by a leaf may extend well beyond this box.

◆ brushesCount

int G3D::_BSPMAP::BSPLeaf::brushesCount

◆ center

Vector3 G3D::_BSPMAP::BSPLeaf::center

Redundant with bounds, but faster to read than compute during culling.

◆ cluster

int G3D::_BSPMAP::BSPLeaf::cluster

◆ facesCount

int G3D::_BSPMAP::BSPLeaf::facesCount


Number of faces in this leaf.

◆ firstBrush

int G3D::_BSPMAP::BSPLeaf::firstBrush

◆ firstFace

int G3D::_BSPMAP::BSPLeaf::firstFace


Index into BSP::faceArray of the first face in this leaf.

The same faces may appear in multiple leaves.


documentation generated on Wed Nov 24 2021 08:02:03 using doxygen 1.8.15