Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Represent a Reuleaux polygon
ResourceFunction["ReuleauxPolygon"][n] gives the Reuleaux polygon constructed from n vertices equally spaced around the unit circle. | |
ResourceFunction["ReuleauxPolygon"][r,n] gives the Reuleaux polygon based on a regular polygon of radius r. | |
ResourceFunction["ReuleauxPolygon"][{r,θ},n] starts at angle θ with respect to the x axis. | |
ResourceFunction["ReuleauxPolygon"][{x,y},rspec,n] centers the Reuleaux polygon at {x,y}. |
A Reuleaux triangle:
In[1]:= | ![]() |
Out[1]= | ![]() |
Different styles applied to ReuleauxPolygon:
In[2]:= | ![]() |
Out[2]= | ![]() |
Generate a Reuleaux triangle, pentagon, heptagon, etc.:
In[3]:= | ![]() |
Out[3]= | ![]() |
Generate Reuleaux pentagons of varying radii:
In[4]:= | ![]() |
In[5]:= | ![]() |
Out[5]= | ![]() |
Generate Reuleaux triangles of varying starting angles:
In[6]:= | ![]() |
In[7]:= | ![]() |
Out[7]= | ![]() |
FaceForm and EdgeForm can be used to specify the styles of the interior and boundary:
In[8]:= | ![]() |
Out[8]= | ![]() |
ReuleauxPolygon uses the same vertices as RegularPolygon:
In[9]:= | ![]() |
Out[9]= | ![]() |
A collection of random Reuleaux polygons:
In[10]:= | ![]() |
Out[10]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License