MarSTDv2004: CCompiledBsp Class Reference

From 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.
CCompiledBsp * child [2]
 Front & back children.
CCompiledMesh * root
 Base mesh where vertex, edge, etc data is stored.
std::vector< CCompiledVertex > vertex
 Vertices that make up the mesh's geometry.
std::vector< CCompiledTexcoord > texcoord
 Texture coordinates used by the mesh's geometry.
std::vector< CCompiledEdge > edge
 Edges used by the mesh's polygons.
std::vector< CCompiledPolygon > polygon
 Polygons that constitute the mesh.
CCompiledMesh * base
 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