Generator

The plane divided by nearest neighbour

A generator in the geometry library, called 32 times across 6 essays. Below: what it draws with nothing chosen and at each mode an essay asks for, what it checks while drawing, and everywhere it is used.

voronoi 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.

With nothing chosen

The plane divided by nearest neighbour. 10 sites, and every point of the rectangle shaded by which site is closest to it. The boundaries are the places where two sites tie.

A scatter walking towards its own centres

A scatter walking towards its own centres. 4 panels of the same 24 sites: the initial clumpy scatter and the Voronoi diagram after 1, 3, 12 rounds of Lloyd's iteration, with the cost falling to 52% of the scatter's as the cells even out.

Every site, and the middle of its own cell

Every site, and the middle of its own cell. 9 Voronoi cells with an arrow drawn in each from its site to the cell's centroid. The arrows are the moves Lloyd's iteration makes, and their lengths are the distances by which the diagram fails to be centroidal.

Where the cost actually falls

Where the cost actually falls. The total squared distance to the nearest site plotted against the round number, over 14 rounds of Lloyd's iteration on 24 sites. The curve drops steeply for two rounds and then flattens.

What the iteration settles into

What the iteration settles into. 80 sites after 80 rounds of Lloyd's iteration, drawn with the six-sided interior cells shaded. 35 of the 50 interior cells have six sides and 8 have five, and the areas are within 0.07 of the mean.

Where two sites tie

Where two sites tie. Two sites, and the line of points equally far from both. Every point on one side is nearer to one site; the boundary between two cells is always a piece of this line.

What it checks while it draws

Collected by running the family and recording what it asserted, not written here. The count is how many separate times the claim was put to the test while these drawings were made.

Where it is called

Every figure on this list is drawn by the same rule, so a change to the rule changes all of them at once. That is why the list is published.

Geometry

Every site in the middle of its own cell

Move each point to the centre of mass of its own Voronoi cell, then redraw the diagram, then do it again. The rule is two lines long, it never mentions hexagons, and what it settles into is a honeycomb.

Geometry

The plane, divided by whoever is nearest

Scatter some points and colour every other point of the plane by which one is closest. The result is a tiling nobody designed, and its dual triangulation has a property that no part of the construction mentions.

Geometry

Nine points on one circle

Three midpoints, three feet of altitudes and three more midpoints. Nine points defined in three unrelated ways, on an arbitrary triangle, and all nine sit on one circle — checked here on two hundred and forty triangles as well as on the drawn one.

Geometry

One dimension up, and the circles disappear

The Delaunay triangulation is defined by a condition about circles, which is awkward to compute and awkward to reason about. Lift every point onto a paraboloid and the circles turn into planes, the condition turns into convexity, and a two-dimensional problem is solved by looking at a three-dimensional shape from underneath.

Geometry

The tree inside the triangulation

The shortest network joining a set of points is built from edges chosen by length, and the triangulation is built from edges chosen by an emptiness condition about circles. The two constructions share no step, and every edge of the first is an edge of the second.

Geometry

When the sites are not the same size

Give every site a weight and the boundaries slide. The cells stay convex and the edges stay straight, which is surprising, and one thing happens that the unweighted diagram never allows — a site can end up owning nothing at all.

The whole library · What the figures prove