class csPolyPlane : public csObject This class represents a texture plane
| | Classify (const csVector3& pt) Classify a vector with regards to this plane in world space |
| | ClosestPoint (csVector3& v, csVector3& isect) Return the closest point on the plane to a point in 3D space (using world coordinates) |
| | csPolyPlane () |
| | Distance (csVector3& v) Return the minimum distance from the plane to a point in 3D space (using world coordinates) |
| | GetCameraNormal (float* p_A, float* p_B, float* p_C, float* p_D) Get the normal in camera space |
| | GetCameraPlane () Get the camera version of the plane |
| | GetObjectNormal (float* p_A, float* p_B, float* p_C, float* p_D) Get the normal in object space |
| | GetObjectPlane () Get the object version of the plane |
| | GetTextureSpace (csMatrix3& tx_matrix, csVector3& tx_vector) Get the transformation from object to texture space. |
| | GetWorldNormal (float* p_A, float* p_B, float* p_C, float* p_D) Get the normal in world space |
| | GetWorldPlane () Get the world version of the plane |
| | IntersectSegment (const csVector3& start, const csVector3& end, csVector3& isect, float* pr) Run a segment through this plane (in world space) and see where it intersects |
| | NearlyEqual (csPolyPlane* plane) Check if this plane is nearly equal to another one in world space coordinates (it only checks on the component values |
| | ObjectToWorld (const csReversibleTransform& obj, csVector3& vertex1) Transform this plane from object space to world space using the given matrices |
| | SetTextureSpace (float xo, float yo, float zo, float x1, float y1, float z1, float len1, float x2, float y2, float z2, float len2) |
| | SetTextureSpace (float xo, float yo, float zo, float x1, float y1, float z1, float len) |
| | SetTextureSpace (csVector3& v_orig, csVector3& v1, float len) |
| | SetTextureSpace (csVector3& v_orig, csVector3& v_u, csVector3& v_v) |
| | SetTextureSpace (float xo, float yo, float zo, float xu, float yu, float zu, float xv, float yv, float zv) |
| | SetTextureSpace (float xo, float yo, float zo, float xu, float yu, float zu, float xv, float yv, float zv, float xw, float yw, float zw) |
| | SetTextureSpace (csMatrix3& tx_matrix, csVector3& tx_vector) |
| | SetTextureSpace (csVector3& v_orig, csVector3& v1, float len1, csVector3& v2, float len2) |
| | SquaredDistance (csVector3& v) Return the minimum squared distance from the plane to a point in 3D space (using world coordinates) |
| | VisibleFromPoint (const csVector3& p) Check if the plane in world space is visible from the given point |
| | WorldToCamera (const csReversibleTransform& t, csVector3& vertex1) Transform the same way from world space to camera space |
| | ~csPolyPlane () |
| | csPolygon2D |
| | csPolyTexture |
| | Dumper |
| | m_cam2tex Transformed texture space transformation |
| | m_obj2tex Transformation from object to texture space. |
| | m_world2tex Transformation from world to texture space. |
| | plane_cam The camera space plane equation. |
| | plane_obj The object space plane equation (this is fixed). |
| | plane_wor The world space plane equation. |
| | v_cam2tex |
| | v_obj2tex Translation from object to texture space. |
| | v_world2tex Translation from world to texture space. |
This class represents a texture plane. This is a plane that defines the orientation and offset of a texture. It can be used by several polygons to let the textures fit perfectly.
friend class csPolyTexture
friend class Dumper
csPlane plane_obj
csPlane plane_wor
csPlane plane_cam
csMatrix3 m_obj2tex
csVector3 v_obj2tex
csMatrix3 m_world2tex
csVector3 v_world2tex
csMatrix3 m_cam2tex
csVector3 v_cam2tex
csPolyPlane()
virtual ~csPolyPlane()
void ObjectToWorld(const csReversibleTransform& obj, csVector3& vertex1)
void WorldToCamera(const csReversibleTransform& t, csVector3& vertex1)
void SetTextureSpace(csVector3& v_orig, csVector3& v1, float len1, csVector3& v2, float len2)
void SetTextureSpace(float xo, float yo, float zo, float x1, float y1, float z1, float len1, float x2, float y2, float z2, float len2)
void SetTextureSpace(float xo, float yo, float zo, float x1, float y1, float z1, float len)
void SetTextureSpace(csVector3& v_orig, csVector3& v1, float len)
void SetTextureSpace(csVector3& v_orig, csVector3& v_u, csVector3& v_v)
void SetTextureSpace(float xo, float yo, float zo, float xu, float yu, float zu, float xv, float yv, float zv)
void SetTextureSpace(float xo, float yo, float zo, float xu, float yu, float zu, float xv, float yv, float zv, float xw, float yw, float zw)
void SetTextureSpace(csMatrix3& tx_matrix, csVector3& tx_vector)
void GetTextureSpace(csMatrix3& tx_matrix, csVector3& tx_vector)
bool VisibleFromPoint(const csVector3& p)
float SquaredDistance(csVector3& v)
float Distance(csVector3& v)
bool NearlyEqual(csPolyPlane* plane)
float Classify(const csVector3& pt)
void ClosestPoint(csVector3& v, csVector3& isect)
bool IntersectSegment(const csVector3& start, const csVector3& end, csVector3& isect, float* pr)
csPlane& GetObjectPlane()
csPlane& GetWorldPlane()
csPlane& GetCameraPlane()
void GetObjectNormal(float* p_A, float* p_B, float* p_C, float* p_D)
void GetWorldNormal(float* p_A, float* p_B, float* p_C, float* p_D)
void GetCameraNormal(float* p_A, float* p_B, float* p_C, float* p_D)
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de