Function Repository Resource:

# CubicSplineCurve

Generate a cubic B-spline curve that passes through given points

Contributed by: Jan Mangaldan
 ResourceFunction["CubicSplineCurve"][{{x1,y1,…},{x2,y2,…},…}] constructs a cubic interpolating BSplineCurve that passes through the given set of points.

## Details and Options

ResourceFunction["CubicSplineCurve"] returns a BSplineCurve object.
With the setting , ResourceFunction["CubicSplineCurve"] returns a curve that is closed.

## Examples

### Basic Examples (2)

A list of points:

 In[1]:=

Show the points along with an interpolating cubic B-spline:

 In[2]:=
 Out[2]=

### Scope (2)

Choose six points in the plane to be interpolated:

 In[3]:=

Use CubicSplineCurve with Arrow:

 In[4]:=
 Out[4]=

Choose 3D points to be interpolated:

 In[5]:=

Show the points along with an interpolating cubic B-spline:

 In[6]:=
 Out[6]=

Show the interpolating cubic B-spline as a Tube:

 In[7]:=
 Out[7]=

### Options (1)

#### SplineClosed (1)

Use to interpolate a set of points with a closed B-spline:

 In[8]:=
 Out[8]=

### Applications (2)

Convert the result of KnotData into a BSplineCurve:

 In[9]:=
 Out[9]=

Visualize the knot as a Tube:

 In[10]:=
 Out[10]=

## Version History

• 1.0.0 – 03 August 2021