BezierCurve
[{$pt_1$, $pt_2$ ...}] Option:
SplineDegree->d
specifies that the underlying polynomial basis should have maximal degree d.Set up some points to form a simple zig-zag...
pts = {{0, 0}, {1, 1}, {2, -1}, {3, 0}};
=
Graphics[{Line[pts], Red, Point[pts]}]
A composite Bézier curve, shown in blue, smooths the zig zag. Control points are shown in red:
Graphics[{BezierCurve[pts], Blue, Line[pts], Red, Point[pts]}]
Extend points...
pts = {{0, 0}, {1, 1}, {2, -1}, {3, 0}, {5, 2}, {6, -1}, {7, 3}};
=
A longer composite Bézier curve and its control points:
Graphics[{BezierCurve[pts], Blue, Line[pts], Red, Point[pts]}]
Notice how the curve from the first to third point is not changed by any points outside the interval. The same is true for points three to five, and so on.