class csBspPolygon : public csPolygonInt This class represents a polygon which can be inserted dynamically in a BSP tree
| | Classify (csPolygonInt* poly) Classify a polygon with regards to this one. |
| | ClipToPlane (csPlane* portal_plane, const csVector3& v_w2c, csVector3*& pverts, int& num_verts, bool cw = true) Clip this polygon the Z plane and if portal_plane is given also clip the polygon to that plane |
| | DoPerspective (const csTransform& trans, csVector3* source, int num_verts, csPolygon2D* dest, bool mirror) Perspective correct a polygon |
| | GetOriginator () Get the original object for which this polygon is a bounding box polygon |
| | GetParent () Get the parent container. |
| | GetPolygon () Get the reference to the polygon. |
| | GetPolyPlane () Return the plane of this polygon. |
| | GetType () Return 2 to indicate it is a bsp polygon. |
| | SamePlane (csPolygonInt* p) Return true if this polygon and the given polygon are on the same plane. |
| | SetOriginator (csObject* orig) Set the original object. |
| | SetParent (csBspContainer* par) Set the parent container. |
| | SetPolyPlane (const csPlane& pl) Set the plane for this polygon. |
| | SplitWithPlane (csPolygonInt** front, csPolygonInt** back, csPlane& split_plane) Split this polygon with the given plane (A,B,C,D). |
| | Transform (const csTransform& trans) Transform the plane of this polygon. |
| | World2Camera (const csTransform& trans) Transform the plane of this polygon from world to camera space |
| | ~csBspPolygon () Destructor. |
| | originator The original object for which this polygon is a bounding box polygon. |
| | parent The parent. |
| | plane The plane. |
| | polygon The 3D polygon. |
This class represents a polygon which can be inserted dynamically in a BSP tree. It is specifically designed to be able to add bounding boxes to sprites and dynamic things and then add those bounding boxes to the BSP tree.
csPlane plane
csBspContainer* parent
csObject* originator
virtual ~csBspPolygon()
csBspContainer* GetParent()
void SetParent(csBspContainer* par)
csObject* GetOriginator()
void SetOriginator(csObject* orig)
csPolyIndexed& GetPolygon()
void SetPolyPlane(const csPlane& pl)
csPlane* GetPolyPlane()
int Classify(csPolygonInt* poly)
void SplitWithPlane(csPolygonInt** front, csPolygonInt** back, csPlane& split_plane)
bool SamePlane(csPolygonInt* p)
int GetType()
void Transform(const csTransform& trans)
void World2Camera(const csTransform& trans)
bool ClipToPlane(csPlane* portal_plane, const csVector3& v_w2c, csVector3*& pverts, int& num_verts, bool cw = true)
bool DoPerspective(const csTransform& trans, csVector3* source, int num_verts, csPolygon2D* dest, bool mirror)
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de