Generator

polyhedron

A generator in the geometry library, called 11 times across 2 essays. Below: what it draws at its defaults and at each mode an essay asks for, what it checks while drawing, and everywhere it is used.

polyhedron is one function. Everything below came out of it during this build, at parameters taken from the essays rather than invented for this page — so a figure here is the same figure a reader meets in an essay, and if the generator changes, this page changes with it.

At its defaults

CubeA cube drawn in projection with 6 faces.

show: "all"

The five Platonic solidsTetrahedron, cube, octahedron, dodecahedron and icosahedron, drawn at a common scale.tetrahedron4 trianglescube6 squaresoctahedron8 trianglesdodecahedron12 pentagonsicosahedron20 triangles

show: "dual"

The cube and its dual, the octahedronA point at the centre of each face of the cube; joining neighbouring points gives the octahedron.

show: "budget"

Why the solids run outFor each regular polygon, the number of copies that can meet at a corner: the angles must sum to less than 360 degrees.triangle60° each3 × 60° = 180°closes into a corner4 × 60° = 240°closes into a corner5 × 60° = 300°closes into a corner6 × 60° = 360°flat or worsesquare90° each3 × 90° = 270°closes into a corner4 × 90° = 360°flat or worsepentagon108° each3 × 108° = 324°closes into a corner4 × 108° = 432°flat or worsehexagon120° each3 × 120° = 360°flat or worse

What it checks while it draws

Collected by running the family and listening to lib/verify.js, not written here. The count is how many separate times this build put that claim to the test.

Where it is called

Changing this generator changes every figure on this list. That is what makes the list worth publishing rather than keeping in a check script.

The whole library · What the figures prove