Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Create 3D shapes from 2D polygons via extrusion along the z axis, or create 3D extrusions of 3D polygons along a 3D vector
ResourceFunction["ExtrudePolygon"][polygon,{zmin,zmax}] extrude 2D polygon from zmin to zmax. | |
ResourceFunction["ExtrudePolygon"][polygon,{vector},type] extrude 3D polygon along 3D vector. | |
ResourceFunction["ExtrudePolygon"][polygon,{zmin,zmax},type] close one or both ends with type. |
Extrude a simple square and visualize with Graphics3D:
In[1]:= | ![]() |
Out[2]= | ![]() |
Specify a closed 3D shape (with closed bottom but open top):
In[3]:= | ![]() |
Out[4]= | ![]() |
Specify a capped 3D shape (with closed bottom and top):
In[5]:= | ![]() |
Out[6]= | ![]() |
Specify a 3D polygon and extrude it along a 3D vector:
In[7]:= | ![]() |
Out[9]= | ![]() |
ExtrudePolygon can apply to arbitrary Cartesian plane polygons, even polygons representing other shapes such as a circle:
In[10]:= | ![]() |
Out[11]= | ![]() |
It is possible to extrude a curve such as the one below:
In[12]:= | ![]() |
Out[13]= | ![]() |
This function can be used to export 2D geometry into 3D object files:
In[14]:= | ![]() |
Visualize the 3D Fan Blades:
In[15]:= | ![]() |
Out[15]= | ![]() |
Export the now 3D object file to a standard format (e.g. STL):
In[16]:= | ![]() |
Wolfram Language 13.0 (December 2021) or above
This work is licensed under a Creative Commons Attribution 4.0 International License