Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Graphics3D primitives for a torus
ResourceFunction["Torus"][] represents a unit radius torus centered at {0,0,0} with a primary radius of 1 and secondary radius of 1/2. | |
ResourceFunction["Torus"][{x,y,z}] represents a unit radius torus centered at {x,y,z} with a primary radius of 1 and secondary radius of 1/2. | |
ResourceFunction["Torus"][pos,{r1,r2}] represents a unit radius torus centered at pos with a primary radius of r1 and secondary radius of r2. | |
ResourceFunction["Torus"][pos,{r1,r2},{ax,ay,az}] represents a unit radius torus centered at pos oriented around a center of rotation with direction {ax,ay,az}. |
A unit torus:
In[1]:= |
Out[1]= |
A torus at {10,20,30} around an orientation vector of {0,1,0} with primary radius of 20 and secondary radius of 2:
In[2]:= |
Out[2]= |
Use Manipulate to interactively update torus parameters:
In[3]:= |
Out[3]= |
This work is licensed under a Creative Commons Attribution 4.0 International License