Public Member Functions | |
| BSPClass (HTreeClass *tree, int bone_index, int &leaf_index) | |
| ~BSPClass (void) | |
| const PlaneClass & | Get_Plane (void) |
| BSPClass * | Get_Front_Child (void) |
| BSPClass * | Get_Back_Child (void) |
| void | Clip_Polygon (const PolygonClass &poly) |
Protected Member Functions | |
| void | Set_Plane_From_Transform (const Matrix3D &tm) |
Protected Attributes | |
| PlaneClass | Plane |
| BSPClass * | Front |
| BSPClass * | Back |
| int | FrontLeafIndex |
| int | BackLeafIndex |
BSPClass Representation of a node in a BSP clipping tree in the shatter system Meshes are "shattered" by clipping them with a fixed BSP tree. The resulting leaf polygons are turned into separate dynamic objects which are thrown around in the world. The BSP tree is constructed using an HTree where each transform in the tree is used as a clipping plane. The plane is defined by the x-y plane of the coordinate system (i.e. z-axis is the normal of the plane, origin is a point on the plane). Leaf nodes of this tree will have two indices. These are indices into the MeshFragments array where they put the polygons in thier front and back half-spaces.
Definition at line 180 of file shattersystem.cpp.
| BSPClass::BSPClass | ( | HTreeClass * | tree, |
| int | bone_index, | ||
| int & | leaf_index ) |
Definition at line 688 of file shattersystem.cpp.
| BSPClass::~BSPClass | ( | void | ) |
Definition at line 729 of file shattersystem.cpp.
| void BSPClass::Clip_Polygon | ( | const PolygonClass & | poly | ) |
Definition at line 745 of file shattersystem.cpp.
|
inline |
Definition at line 188 of file shattersystem.cpp.
|
inline |
Definition at line 187 of file shattersystem.cpp.
|
inline |
Definition at line 186 of file shattersystem.cpp.
|
protected |
Definition at line 740 of file shattersystem.cpp.
|
protected |
Definition at line 198 of file shattersystem.cpp.
|
protected |
Definition at line 200 of file shattersystem.cpp.
|
protected |
Definition at line 197 of file shattersystem.cpp.
|
protected |
Definition at line 199 of file shattersystem.cpp.
|
protected |
Definition at line 196 of file shattersystem.cpp.