Closed 2D/3D• Closed is a setting for the EndConditions option for SplineFit that specifies that the slope and curvature of the spline at the two ends will be equal. • To actually close the spline upon itself, the EndConditions->Closed option must be given and the last data point given to SplineFit must be identical to the first. • The alternatives to Closed are Natural or a list of two direction vectors. • See also: SplineFunction. Further Examples Load the Modeler2D package. Create a SplineFunction representing the path between a sequence of 2D points, and evaluate it halfway between the first and second points. Each end of the spline will have zero curvature.
Out[3]= | |
Out[4]= | |
The spline is a 2D parametric function, and can be plotted as such.
Out[5]= | |
Here is a spline with the ends closed upon themselves.
Out[6]= | |
Here is a spline with specific direction vectors at the ends.
Out[7]= | |
Here are all three splines shown together.
Out[8]= | |
Here is a SplineFunction with values given for the independent variable at each knot point.
Out[9]= | |
Out[10]= | |
Here is the arc length of the spline, also expressed as a function of the independent variable.
Out[11]= | |
Out[12]= | |
|