org.jagatoo.loaders.models.bsp.lumps
Class BSPLeaf

java.lang.Object
  extended by org.jagatoo.loaders.models.bsp.lumps.BSPLeaf

public class BSPLeaf
extends java.lang.Object

The leafs, like the faces, are a very important part of the BSP information. They store the visibility cluster, the area portal, the leaf bounding box, the index into the faces, the number of leaf faces, the index into the brushes for collision, and finally, the number of leaf brushes. To calculate the number of leafs in the lump you divide the length of the lump by the sizeof(tBSPLeaf).


Field Summary
 int area
          The area portal
 int cluster
          The visibility cluster
 int leafBrush
          The first index for into the brushes
 int leafFace
          The first index into the face array
 int[] maxs
          The bounding box max position
 int[] mins
          The bounding box min position
 int numOfLeafBrushes
          The number of brushes for this leaf
 int numOfLeafFaces
          The number of faces for this leaf
 
Constructor Summary
BSPLeaf()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cluster

public int cluster
The visibility cluster


area

public int area
The area portal


mins

public int[] mins
The bounding box min position


maxs

public int[] maxs
The bounding box max position


leafFace

public int leafFace
The first index into the face array


numOfLeafFaces

public int numOfLeafFaces
The number of faces for this leaf


leafBrush

public int leafBrush
The first index for into the brushes


numOfLeafBrushes

public int numOfLeafBrushes
The number of brushes for this leaf

Constructor Detail

BSPLeaf

public BSPLeaf()