Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Create a BSplineSurface primitive representing a disk
ResourceFunction["Disk3D"][{x, y, z}, r] returns a BSplineSurface representation of a 3D disk with center {x,y,z} and radius r, with the normal axis in the z-direction. | |
ResourceFunction["Disk3D"][{x, y, z}, {r1, r2}] returns a 3D elliptical disk with semimajor axis r1 and semiminor axis r2, and with the semimajor axis in the x-direction. | |
ResourceFunction["Disk3D"][{x, y, z},rads, a] returns a 3D elliptical disk with the normal axis in the direction of vector a. | |
ResourceFunction["Disk3D"][{x, y, z}, rads, {u, v}] returns a 3D elliptical disk with the semimajor axis in the direction u, and with the ellipical plane spanned by vectors u and v. |
A 3D disk:
In[1]:= | ![]() |
Out[1]= | ![]() |
A 3D elliptical disk:
In[2]:= | ![]() |
Out[2]= | ![]() |
Differently-styled disks:
In[3]:= | ![]() |
Out[3]= | ![]() |
A disk with a normal in the direction {1,1,1}:
In[4]:= | ![]() |
Out[4]= | ![]() |
A disk in the plane spanned by the vectors {1,1,0} and {0,1,1}:
In[5]:= | ![]() |
Out[5]= | ![]() |
Rendering of a fairly large number of disks:
In[6]:= | ![]() |
Out[6]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License