Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Generate the power triangulation of a set of circles
ResourceFunction["PowerTriangulation"][{c1,c2,…}] gives a MeshRegion representing the power triangulation of the circles c1,c2, …. |
Generate the power triangulation of a set of circles:
In[1]:= |
|
Out[1]= |
|
Show the power triangulation with the generating circles:
In[2]:= |
|
Out[2]= |
|
Create a power triangulation from a set of disks:
In[3]:= |
|
Out[4]= |
|
Basic properties:
In[5]:= |
|
Out[5]= |
|
Power triangulations are full dimensional:
In[6]:= |
|
Out[6]= |
|
Power triangulations are bounded:
In[7]:= |
|
Out[7]= |
|
Find its area and centroid:
In[8]:= |
|
Out[8]= |
|
Test for point membership or distance to the closest point in the region:
In[9]:= |
|
Out[9]= |
|
In[10]:= |
|
Out[10]= |
|
Generate the power triangulation of a mixture of Circle and Disk objects:
In[11]:= |
|
Out[11]= |
|
MeshCellHighlight allows you to specify highlighting for parts of a PowerTriangulation:
In[12]:= |
|
Out[12]= |
|
Individual cells can be highlighted using their cell index:
In[13]:= |
|
Out[13]= |
|
Or by the cell itself:
In[14]:= |
|
Out[14]= |
|
MeshCellLabel can be used to label parts of a PowerTriangulation:
In[15]:= |
|
Out[15]= |
|
Individual cells can be labeled using their cell index:
In[16]:= |
|
Out[16]= |
|
Or by the cell itself:
In[17]:= |
|
Out[17]= |
|
MeshCellMarker can be used to assign values to parts of a PowerTriangulation:
In[18]:= |
|
Out[18]= |
|
Use MeshCellLabel to show the markers:
In[19]:= |
|
Out[19]= |
|
MeshCellStyle allows you to specify styling for parts of a PowerTriangulation:
In[20]:= |
|
Out[20]= |
|
Individual cells can be highlighted using their cell index:
In[21]:= |
|
Out[21]= |
|
Or by the cell itself:
In[22]:= |
|
Out[22]= |
|
Use a theme with grid lines and a legend:
In[23]:= |
|
Out[23]= |
|
Use a theme to draw a wireframe:
In[24]:= |
|
Out[24]= |
|
The output of PowerTriangulation is always a full-dimensional MeshRegion:
In[25]:= |
|
Out[25]= |
|
In[26]:= |
|
Out[26]= |
|
The circumcircle for each triangle in a power triangulation contains no other circles' centers:
In[27]:= |
|
Out[27]= |
|
Find circumcircles for all triangles:
In[28]:= |
|
Plot the circumcircles as disks:
In[29]:= |
|
Out[29]= |
|
The power triangulation of a set of circles all having the same radii is equivalent to the DelaunayMesh of the circles' centers:
In[30]:= |
|
Out[30]= |
|
The resource function PowerDiagram is the dual of PowerTriangulation:
In[31]:= |
|
Out[32]= |
|
This work is licensed under a Creative Commons Attribution 4.0 International License