此为 Mathematica 7 文档,内容基于更早版本的 Wolfram 语言
查看最新文档(版本11.1)

Spline

As of Version 7.0, some of the functionality of the Splines Package is now built into the Mathematica kernel. RightSkeleton
Spline[{pt1, pt2, ...}, type]
is a two-dimensional graphics primitive which represents a spline of type type through (or controlled by) points pt1, pt2, ....
  • Possible settings for type are:
Cubiccubic spline
BezierBézier spline
CompositeBeziercomposite Bézier spline
  • Spline may be used along with other graphics primitives in a Graphics expression.
  • Spline[{pt1, pt2, ...}, type] produces a spline expression of the form Spline[{pt1, pt2, ...}, type, control] 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
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]=