Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Calculate the convex layers of a set of 2D points
ResourceFunction["ConvexLayers2D"][pts] calculates the convex layers for the points pts. |
Define a list of points from a two polygons and then find the convex hull layers:
In[1]:= |
Out[2]= |
Visualize the results:
In[3]:= |
Out[4]= |
Calculate the convex layers for some randomly generated data:
In[5]:= |
Out[5]= |
Visualize the layers:
In[6]:= |
Out[6]= |
This work is licensed under a Creative Commons Attribution 4.0 International License