|
|
A glsurface is an abstract object that can be really displayed on the screen a surface can be either opened or closed. The normal vector is directed outside.
glsurface ()
| glsurface |
glsurface (const CString &sName)
| glsurface |
~glsurface ()
| ~glsurface |
[virtual]
void Translate (const vect&)
| Translate |
[pure virtual]
Translation of the glsurface along a vector
glsurface* Duplicate ()
| Duplicate |
[const pure virtual]
Create a clone of the surface
void Render ()
| Render |
[const pure virtual]
Render the surface on the current window
bool IsInside (const point &p)
| IsInside |
[const virtual]
Check if a point is inside the volume define by the surface.
Parameters:
p | The point to check |
Returns: true if the point is inside the glsurface
planesurf* Collision (
const point &poStart,
const vect &vPath,
point* pptInter,
glsolid* &pSolid)
| Collision |
[pure virtual]
Collision detection with a path. If any intersection occurs, pptInter is the point of intersection and pSolid is the glsolid touched by the path. This method does not work if the path goes through the volume defined by the surface. (The end point of the path must be inside (IsInside) the glsurface. Also, the start point of the path must be outside the glsurface.
Parameters:
poStart | The starting point of the path |
vPath | The length of the path. |
pptInter | modified, this is a return value |
Returns: the planesurf (eg. triangle) that the path goes through.
See also: glsolid
void SetColor (const couleur &)
| SetColor |
[pure virtual]
point GPoint ()
| GPoint |
[const pure virtual]
Find the G point of the glsurface. G Point is the mass center of the glsurface.
void SetName (const CString& sName)
| SetName |
const CString& GetName ()
| GetName |
[const]
CString msName | msName |
[private]
Generated by: saturn on FrancoisLinux on Sun Feb 3 20:01:44 2002, using kdoc 2.0a53. |