torque Torque Game Engine Documentation
TGE Version 1.5.2

Polytope Class Reference

#include <polytope.h>


Public Types

typedef Vector< EdgeEdgeList
typedef Vector< FaceFaceList
typedef Vector< VertexVertexList
typedef Vector< VolumeVolumeList
typedef Vector< StackElementVolumeStack

Public Member Functions

 Polytope ()
void buildBox (const MatrixF &transform, const Box3F &box)
void intersect (SimObject *, const BSPNode *node)
bool didIntersect ()
void extrudeFace (int fi, const VectorF &vec, Polytope *out)
bool findCollision (const VectorF &vec, Polytope::Collision *best)
void render ()

Data Fields

S32 sideCount
EdgeList mEdgeList
FaceList mFaceList
VertexList mVertexList
VolumeList mVolumeList

Private Member Functions

bool intersect (const PlaneF &plane, const Point3F &sp, const Point3F &ep)

Data Structures

struct  Collision
struct  Edge
struct  Face
struct  StackElement
struct  Vertex
struct  Volume


Member Typedef Documentation


Constructor & Destructor Documentation

Polytope::Polytope (  ) 


Member Function Documentation

bool Polytope::intersect ( const PlaneF plane,
const Point3F sp,
const Point3F ep 
) [private]

void Polytope::buildBox ( const MatrixF transform,
const Box3F box 
)

void Polytope::intersect ( SimObject ,
const BSPNode node 
)

bool Polytope::didIntersect (  )  [inline]

void Polytope::extrudeFace ( int  fi,
const VectorF vec,
Polytope out 
)

bool Polytope::findCollision ( const VectorF vec,
Polytope::Collision best 
)

void Polytope::render (  ) 


Field Documentation




All Rights Reserved GarageGames.com, Inc. 1999-2005
Auto-magically Generated with Doxygen