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 .

DetailsDetails

  • To use , you first need to load the Splines Package using .
  • 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

ExamplesExamplesopen allclose all

Basic Examples (1)Basic Examples (1)

In[1]:=
Click for copyable input

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]=
New to Mathematica? Find your learning path »
Have a question? Ask support »