Home | All Classes | Grouped Classes | Index | Search

Class CL_BezierSurface

Class for Bezier surfaces More...

Derived from: none
Derived by: none
Group: Core (Math)

#include <ClanLib/core.h>

Construction:

CL_BezierSurface

Constructor

Attributes:

get_xsteps

Returns the number of steps

get_ysteps

Returns the number of steps

get_xs

Returns the number of surface segments

get_ys

Returns the number of surface segments

get_stepping

Returns whether steps is the number of points per segment or per curve.

get_surface

Nak Nak - don't expect it to be implemented too soon... Returns the length of a segment (or the surface) Returns an array of xs * xsteps * ys * ysteps CL_Vectors -> the surface

get_control_points

Returns the 16 * xs * ys control points

Operations:

set_xsteps

Sets the number of steps

set_ysteps

Sets the number of steps

set_stepping

Sets the stepping

Operators:

operator []

Returns the n-th vector of the curve (_doesn't_ return a reference)

Detailed description:

This class generates points on a Bezier surface from given control points

USE AT YOUR OWN RISK TILL THIS CLASS IS EXTENSIVELY TESTED!!! I WILL REMOVE THIS WARNING ONCE IT BASICALLY WORKS.

I hate documentation work and I won't document this code before any one besides me actually uses it. So if you want to use it simply write a mail on the ClanLib User list and I will do what I can :-)

  1999/12/30	vogel       renamed CL_Bezier to CL_BezierCurve
                          added CL_BezierSurface

  1999/07/07	vogel       initial version


  BezierCurve TODO: 

  - length and stepping per curve
  

stepping per curve means that the generated points are equidistant to each other and this requires get_length() working. So at the moment all that is working is having 'n' equidistant points per segment.

same applies to BezierSurface.



Questions or comments, write to the
ClanLib mailing list.