Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Generate a cubic B-spline curve that passes through given points
ResourceFunction["CubicSplineCurve"][{{x1,y1,…},{x2,y2,…},…}] constructs a cubic interpolating BSplineCurve that passes through the given set of points. |
A list of points:
In[1]:= |
Show the points along with an interpolating cubic B-spline:
In[2]:= |
Out[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]= |
Use SplineClosed→True to interpolate a set of points with a closed B-spline:
In[8]:= |
Out[8]= |
Convert the result of KnotData into a BSplineCurve:
In[9]:= |
Out[9]= |
Visualize the knot as a Tube:
In[10]:= |
Out[10]= |
This work is licensed under a Creative Commons Attribution 4.0 International License