Function Repository Resource:

# NotchedPolygon

Represent a polygon with notched corners

Contributed by: Jan Mangaldan
 ResourceFunction["NotchedPolygon"][{p1,…,pn},r] represents a filled notched polygon with points pi and notch radius r. ResourceFunction["NotchedPolygon"][{p1,…,pn},{r1,…,rn}] represents a filled notched polygon with points pi and corresponding notch radii ri.

## Details

ResourceFunction["NotchedPolygon"] returns a Polygon object, and can be used as a graphics primitive.
ResourceFunction["NotchedPolygon"][poly,rspec], where poly is a Polygon, Rectangle or Triangle object, gives a notched version of poly.
The notch radii ri must be non-negative numbers.
ResourceFunction["NotchedPolygon"] works with 2D and 3D polygons.

## Examples

### Basic Examples (2)

A triangle with notched corners:

 In[1]:=
 Out[1]=
 In[2]:=
 Out[2]=

A rectangle with different notch radii for each corner:

 In[3]:=
 Out[3]=

### Scope (4)

Coordinates for a star-shaped polygon:

 In[4]:=

Show the original polygon and the notched version:

 In[5]:=
 Out[5]=

Use different notch radii for each vertex:

 In[6]:=
 Out[6]=

A notched 3D polygon:

 In[7]:=
 Out[7]=

### Applications (2)

Plot a function over a notched polygon domain:

 In[8]:=
 Out[8]=

A polyhedron with notched faces:

 In[9]:=
 In[10]:=
 Out[10]=

### Properties and Relations (1)

NotchedPolygon returns a Polygon object:

 In[11]:=
 Out[11]=

### Possible Issues (2)

If the notch radius is too large, NotchedPolygon may give unexpected results:

 In[12]:=
 Out[12]=

 In[13]:=
 Out[13]=

### Neat Examples (1)

Use NotchedPolygon with the resource function OutlinePolygons on a truncated icosahedron:

 In[14]:=
 In[15]:=
 Out[15]=

## Version History

• 1.0.0 – 04 February 2021

## Author Notes

Polygons with holes are currently not supported.