MarSTDv2004: CCompiledBsp Class Reference

MarSTDv2004

CCompiledBsp Class Reference

Inheritance diagram for CCompiledBsp:

Inheritance graph
[legend]
Collaboration diagram for CCompiledBsp:

Collaboration graph
[legend]
List of all members.

Detailed Description

Author:
Marcel Smit

Definition at line 46 of file CCompiledBsp.h.

Public Member Functions

void compile (CBsp *bsp)
void getHitLeafs (CVector &point, std::vector< CCompiledBsp * > &bspArray)
void getHitLeafs (CSphere &sohere, std::vector< CCompiledBsp * > &bspArray)
void clear ()
void init ()
 Initialize the mesh after all polygon / edge / vertex data has been created. This will calculate polygon & vertex normals, etc, etc.

Public Attributes

CPlane plane
 Splitting plane.
CCompiledBspchild [2]
 Front & back children.
CCompiledMeshroot
 Base mesh where vertex, edge, etc data is stored.
std::vector< CCompiledVertexvertex
 Vertices that make up the mesh's geometry.
std::vector< CCompiledTexcoordtexcoord
 Texture coordinates used by the mesh's geometry.
std::vector< CCompiledEdgeedge
 Edges used by the mesh's polygons.
std::vector< CCompiledPolygonpolygon
 Polygons that constitute the mesh.
CCompiledMeshbase
 Mesh where shared data is stored.
std::vector< int > polygonIndex
 Index into polygon array of shared data mesh.

Protected Member Functions

void getLeafNodes (CBsp *bsp, std::vector< CBsp * > &bspArray)
void getLeafNodes (std::vector< CCompiledBsp * > &cbspArray)
void replicateHierarchy (CBsp *bsp)
 Creates a hierarchy structure that resembles the tree structure of bsp.

Member Function Documentation

void CCompiledBsp::compile CBsp bsp  ) 
 

Compiles the bsp tree into a compiled bsp structure.

Parameters:
bsp BSP tree to compile.

void CCompiledBsp::getHitLeafs CVector point,
std::vector< CCompiledBsp * > &  bspArray
 

Get the leafs the point is in.

void CCompiledBsp::getHitLeafs CSphere sohere,
std::vector< CCompiledBsp * > &  bspArray
 

Get the leafs the sphere is in.


The documentation for this class was generated from the following file:
Generated on Tue Feb 8 21:59:33 2005 for MarSTDv2004 by  doxygen 1.4.1