Class TPiecewiseCubicBezier
Unit
Declaration
type TPiecewiseCubicBezier = class(TControlPointsCurve)
Description
Piecewise (composite) cubic Bezier curve. Each segment (ControlPoints[i]..ControlPoints[i+1]) is a cubic Bezier curve (Bezier with 4 control points, 2 points in the middle are autocalculated for max smoothness).
This is a cubic Bspline. Which is equivalent to C2 continuous composite Bézier curves. See https://en.wikipedia.org/wiki/Spline_%28mathematics%29 . Aka Cubic BSpline (piecewise C2Smooth Cubic Bezier).
ControlPoints.Count may be 1 (in general, for TControlPointsCurve, it must be >= 2).
You can use this to calculate points on a curve, you cannot render the curve outofthebox with this class. For a portable and renderable curves consider using X3D NURBS nodes (wrapped in a TCastleScene) instead. Or convert this curve to a TLineSetNode X3D node.
Hierarchy
 TObject
 TCurve
 TControlPointsCurve
 TPiecewiseCubicBezier
Overview
Methods
constructor Create; 

destructor Destroy; override; 

procedure UpdateControlPoints; override; 

function Point(const t: Float): TVector3; override; 

function BoundingBox: TBox3D; override; 
Description
Methods
constructor Create; 

destructor Destroy; override; 

procedure UpdateControlPoints; override; 

function Point(const t: Float): TVector3; override; 

function BoundingBox: TBox3D; override; 

Generated by PasDoc 0.16.0.