Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Make polygons from an array of points
ResourceFunction["PointArrayToPolygons"][array] returns a GraphicsComplex object representing polygons formed from the two-dimensional array of 3D points array. |
An array of points:
In[1]:= |
Make polygons out of the points, and visualize them:
In[2]:= |
Out[2]= |
Points representing a torus:
In[3]:= |
Use directives to modify the style of the polygons:
In[4]:= |
Out[4]= |
Torus points with color directives for each point:
In[5]:= |
Show the colored torus:
In[6]:= |
Out[6]= |
Compare the result of including and not including normals:
In[7]:= |
In[8]:= |
Out[8]= |
Use PointArrayToPolygons with the resource function PerforatePolygons to make a surface with holes:
In[9]:= |
In[10]:= |
Out[10]= |
This work is licensed under a Creative Commons Attribution 4.0 International License