This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

Spline

As of Version 7.0, some of the functionality of the Splines Package is now built into the Mathematica kernel.

is a two-dimensional graphics primitive which represents a spline of type type through (or controlled by) points .
  • Possible settings for type are:
Cubiccubic spline
BezierBézier spline
CompositeBeziercomposite Bézier spline
  • may be used along with other graphics primitives in a Graphics expression.
  • produces a spline expression of the form where control is information which describes the spline completely.
  • The information in control depends on the kind of spline used.
  • The following options can be given:
SplinePoints25initial number of points sampled in default rendering of spline
SplineDotsNonestyle to render interpolation or control points of curve
MaxBend10.maximum angle between successive segments when using adaptive rendering
SplineDivision20.maximum amount of subdivision to be used in attempting to generate a smooth curve
Bézier spline controlled by four points:
Cubic spline through four points:
Composite Bézier spline controlled by six points:
Cubic spline through six points:
Needs["Splines`"]
Bézier spline controlled by four points:
In[2]:=
Click for copyable input
Out[2]=
Cubic spline through four points:
In[3]:=
Click for copyable input
Out[3]=
Composite Bézier spline controlled by six points:
In[4]:=
Click for copyable input
Out[4]=
Cubic spline through six points:
In[5]:=
Click for copyable input
Out[5]=
SplineDots shows the control points:
Big purple points for the control points:
SplinePoints determines how often to sample the spline for rendering:
SplineDivision determines how much to refine the spline for rendering: