doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
idSurface_Polytope Class Reference

#include <Surface_Polytope.h>

Inheritance diagram for idSurface_Polytope:
idSurface

Public Member Functions

 idSurface_Polytope (void)
 
void FromPlanes (const idPlane *planes, const int numPlanes)
 
void SetupTetrahedron (const idBounds &bounds)
 
void SetupHexahedron (const idBounds &bounds)
 
void SetupOctahedron (const idBounds &bounds)
 
void SetupDodecahedron (const idBounds &bounds)
 
void SetupIcosahedron (const idBounds &bounds)
 
void SetupCylinder (const idBounds &bounds, const int numSides)
 
void SetupCone (const idBounds &bounds, const int numSides)
 
int SplitPolytope (const idPlane &plane, const float epsilon, idSurface_Polytope **front, idSurface_Polytope **back) const
 
- Public Member Functions inherited from idSurface
 idSurface (void)
 
 idSurface (const idSurface &surf)
 
 idSurface (const idDrawVert *verts, const int numVerts, const int *indexes, const int numIndexes)
 
 ~idSurface (void)
 
const idDrawVertoperator[] (const int index) const
 
idDrawVertoperator[] (const int index)
 
idSurfaceoperator+= (const idSurface &surf)
 
int GetNumIndexes (void) const
 
const intGetIndexes (void) const
 
int GetNumVertices (void) const
 
const idDrawVertGetVertices (void) const
 
const intGetEdgeIndexes (void) const
 
const surfaceEdge_tGetEdges (void) const
 
void Clear (void)
 
void SwapTriangles (idSurface &surf)
 
void TranslateSelf (const idVec3 &translation)
 
void RotateSelf (const idMat3 &rotation)
 
int Split (const idPlane &plane, const float epsilon, idSurface **front, idSurface **back, int *frontOnPlaneEdges=NULL, int *backOnPlaneEdges=NULL) const
 
bool ClipInPlace (const idPlane &plane, const float epsilon=ON_EPSILON, const bool keepOn=false)
 
bool IsConnected (void) const
 
bool IsClosed (void) const
 
bool IsPolytope (const float epsilon=0.1f) const
 
float PlaneDistance (const idPlane &plane) const
 
int PlaneSide (const idPlane &plane, const float epsilon=ON_EPSILON) const
 
bool LineIntersection (const idVec3 &start, const idVec3 &end, bool backFaceCull=false) const
 
bool RayIntersection (const idVec3 &start, const idVec3 &dir, float &scale, bool backFaceCull=false) const
 

Additional Inherited Members

- Protected Member Functions inherited from idSurface
void GenerateEdgeIndexes (void)
 
int FindEdge (int v1, int v2) const
 
- Protected Attributes inherited from idSurface
idList< idDrawVertverts
 
idList< intindexes
 
idList< surfaceEdge_tedges
 
idList< intedgeIndexes
 

Detailed Description

Definition at line 42 of file Surface_Polytope.h.

Constructor & Destructor Documentation

ID_INLINE idSurface_Polytope::idSurface_Polytope ( void  )

Definition at line 67 of file Surface_Polytope.h.

Member Function Documentation

void idSurface_Polytope::FromPlanes ( const idPlane planes,
const int  numPlanes 
)

Definition at line 40 of file Surface_Polytope.cpp.

void idSurface_Polytope::SetupCone ( const idBounds bounds,
const int  numSides 
)

Definition at line 265 of file Surface_Polytope.cpp.

void idSurface_Polytope::SetupCylinder ( const idBounds bounds,
const int  numSides 
)

Definition at line 257 of file Surface_Polytope.cpp.

void idSurface_Polytope::SetupDodecahedron ( const idBounds bounds)

Definition at line 241 of file Surface_Polytope.cpp.

void idSurface_Polytope::SetupHexahedron ( const idBounds bounds)

Definition at line 131 of file Surface_Polytope.cpp.

void idSurface_Polytope::SetupIcosahedron ( const idBounds bounds)

Definition at line 249 of file Surface_Polytope.cpp.

void idSurface_Polytope::SetupOctahedron ( const idBounds bounds)

Definition at line 193 of file Surface_Polytope.cpp.

void idSurface_Polytope::SetupTetrahedron ( const idBounds bounds)

Definition at line 92 of file Surface_Polytope.cpp.

int idSurface_Polytope::SplitPolytope ( const idPlane plane,
const float  epsilon,
idSurface_Polytope **  front,
idSurface_Polytope **  back 
) const

Definition at line 273 of file Surface_Polytope.cpp.


The documentation for this class was generated from the following files: