Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Plot a curve defined by its curvature and torsion
ResourceFunction["CurvatureTorsionPlot3D"][{κ,τ},{t,tmin,tmax},{a0,p,q,r}] plots the curve c defined by its curvature κ and torsion τ, written as functions of t and having initial conditions c(a0)=p,c'(a0)=q and c''(a0)=κ(a0)r. | |
ResourceFunction["CurvatureTorsionPlot3D"][{κ,τ},{t,tmin,tmax}] plots the curve using default initial conditions. | |
ResourceFunction["CurvatureTorsionPlot3D"][{{κ1,τ1},…},{t,tmin,tmax}] plots several curves defined by their curvatures κi and torsions τi. |
Zero torsion gives a plane curve:
| In[1]:= |
| Out[1]= | ![]() |
Constant curvature and torsion gives a helix:
| In[2]:= |
| Out[2]= | ![]() |
Linear curvature and constant torsion:
| In[3]:= |
| Out[3]= | ![]() |
Linear curvature and torsion:
| In[4]:= |
| Out[4]= | ![]() |
Constant curvature and linear torsion:
| In[5]:= |
| Out[5]= | ![]() |
Constant curvature and sinusoidal torsion:
| In[6]:= |
| Out[6]= | ![]() |
Sine-cosine curvature and torsion:
| In[7]:= |
| Out[7]= | ![]() |
Using a sawtooth wave curve:
| In[8]:= |
| Out[8]= | ![]() |
Increasing torsion ends in a closed curve:
| In[9]:= | ![]() |
| Out[9]= | ![]() |
All graphics together:
| In[10]:= | ![]() |
| Out[10]= | ![]() |
Animate the evolution of the curve:
| In[11]:= | ![]() |
| Out[11]= | ![]() |
Apply a color function:
| In[12]:= |
| Out[12]= | ![]() |
Get a curve with prescribed curvature (intrinsic curvature):
| In[13]:= | ![]() |
Plot a surface of revolution:
| In[14]:= | ![]() |
| Out[14]= | ![]() |
Another way to generate a surface with from a curve with intrinsic curvature is by using GeneralizedHelicoid:
| In[15]:= |
| In[16]:= | ![]() |
| Out[16]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License