CL_BezierSurface3
Class for bezier surfaces
Overview
This class generates points on a Bezier surface from given control points
Class members
CL_BezierSurface(-
const CL_Vector *cp, int xs, int ys, int xsteps, int ysteps, bool stepping = true)
- virtual
~CL_BezierSurface()
- virtual int
get_xsteps()
- virtual int
get_ysteps()
- virtual int
get_xs()
- virtual int
get_ys()
- virtual bool
get_stepping()
- virtual void
set_xsteps( -
int xsteps)
- virtual void
set_ysteps( -
int ysteps)
- virtual void
set_stepping( -
bool stepping)
- virtual CL_Vector*
get_surface()
- virtual CL_Vector*
get_control_points()
- CL_Vector operator [](
-
int n)
Members with descriptions
CL_BezierSurface(-
const CL_Vector *cp, int xs, int ys, int xsteps, int ysteps, bool stepping = true)
Parameters: cp - an array of control points with size (16 * xs * ys) xs - number of surface segments on x direction ys - number of surface segments on y direction xsteps - number of points to generate on x direction ysteps - number of points to generate on x direction stepping - whether steps is the number of points per segment or per surface.
Description:
Constructor
- virtual
~CL_BezierSurface() -
Description:
Destructor
- virtual int
get_xsteps() -
Description:
Returns the number of steps
Return value:
number of steps
- virtual int
get_ysteps() -
Description:
Returns the number of steps
Return value:
number of steps
- virtual int
get_xs() -
Description:
Returns the number of surface segments
Return value:
number of surface segments
- virtual int
get_ys() -
Description:
Returns the number of surface segments
Return value:
number of surface segments
- virtual bool
get_stepping() -
Parameters: segment - number of segment (-1 indicates whole surface)
Description:
Returns whether steps is the number of points per segment or per curve.Nak Nak - don't expect it to be implemented too soon...Returns the length of a segment (or the surface) virtual float get_length(int segment = -1) const;
Return value:
stepping length of segment (or surface)
- virtual void
set_xsteps( -
int xsteps)
Parameters: steps - number of steps
Description:
Sets the number of steps
- virtual void
set_ysteps( -
int ysteps)
Parameters: steps - number of steps
Description:
Sets the number of steps
- virtual void
set_stepping( -
bool stepping)
Parameters: stepping - whether steps is the number of points per segment or per curve.
Description:
Sets the stepping
- virtual CL_Vector*
get_surface() -
Description:
Returns an array of xs * xsteps * ys * ysteps CL_Vectors -> the surface
Return value:
the curve (xs * xsteps * ys * ystepes CL_Vectors)
- virtual CL_Vector*
get_control_points() -
Description:
Returns the 16 * xs * ys control points
Return value:
the 16 * xs * ys control points
- CL_Vector operator [](
-
int n)
Parameters: n - the vector to return (counting starts at 0)
Description:
Returns the n-th vector of the curve (_doesn't_ return a reference)
Return value:
the n-th vector of the curve (_doesn't_ return a reference)