Function Repository Resource:

# OutlinePolygons

Outline polygons by beam-like representation

Contributed by: Wolfram Research
 ResourceFunction["OutlinePolygons"][gr] outlines the polygons in the 3D graphics gr by beam-like representations. ResourceFunction["OutlinePolygons"][gr, inner, outer] outlines the polygons with ratios inner and outer.

## Details and Options

The width of each beam is formed by creating a hole in each polygon. Holes are created by scaling each point in the polygon inward by ratio inner.
The height of each beam oriented with respect to the origin is given by scaling the polygon inward by ratio outer.
ResourceFunction["OutlinePolygons"] works best with planar convex polygons. It does not support arbitrary 3D graphics primatives.
ResourceFunction["OutlinePolygons"][gr] is equivalent to ResourceFunction["OutlinePolygons"][gr,0.8,0.9].

## Examples

### Basic Examples (9)

An outlined tetrahedron:

 In[1]:=
 Out[1]=

Specify the inner and outer ratios:

 In[2]:=
 Out[2]=

A spikey:

 In[3]:=
 Out[3]=

OutlinePolygons works with other primitives:

 In[4]:=
 Out[4]=
 In[5]:=
 Out[5]=

A Polyhedron with voids:

 In[6]:=
 Out[6]=

 In[7]:=
 In[8]:=
 Out[8]=
 In[9]:=
 Out[9]=

Use VertexColors:

 In[10]:=
 Out[10]=
 In[11]:=
 Out[11]=

Use VertexNormals:

 In[12]:=
 In[13]:=
 Out[13]=

Use Scaled coordinates:

 In[14]:=
 Out[14]=

### Neat Examples (4)

Create a periodic structure:

 In[15]:=
 Out[15]=

Outline a Klein bottle:

 In[16]:=
 In[17]:=
 Out[17]=

A 3D model of Beethoven:

 In[18]:=
 Out[18]=

Compute the circumsphere of a platonic solid, solving for edge length l, then the insphere, and let be the circumsphere of the next:

 In[19]:=
 In[20]:=
 Out[20]=

Kepler’s Mysterium Cosmographicum:

 In[21]:=
 Out[21]=

Enrique Zeleny

## Version History

• 1.1.0 – 04 February 2021
• 1.0.0 – 22 October 2020