Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Get uniformly distributed points on a disk
ResourceFunction["DiskPoints"][n] gives the positions of n uniformly distributed points on a unit disk. |
500 uniformly distributed points on a unit disk:
In[1]:= | ![]() |
Out[1]= | ![]() |
Compare this with the boundaries of a unit disk:
In[2]:= | ![]() |
Out[2]= | ![]() |
Use DiskPoints to make a uniform mesh:
In[3]:= | ![]() |
Out[3]= | ![]() |
Connect each point to its nearest neighbor:
In[4]:= | ![]() |
Out[5]= | ![]() |
Highlight the non-uniformity in the area determined using Voronoi analysis:
In[6]:= | ![]() |
Out[7]= | ![]() |
Find the minimum spanning tree for 2000 points, and show the connectedness:
In[8]:= | ![]() |
Out[8]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License