The history and maths behind Gear Bloom
Gear Bloom draws roulette curves: the paths traced by a point on a circle that rolls around another circle. Their story is old. Nearly 2,000 years ago the astronomer Ptolemy explained the looping paths of the planets with circles riding on circles, called epicycles, which trace the same family of curves. In the 1600s and 1700s mathematicians such as Girard Desargues, Ole Rømer and Philippe de La Hire studied rolling-circle curves to shape gear teeth that turn smoothly. In 1827 the English architect and engineer Peter Hubert Desvignes built a machine that drew intricate spirals to make banknotes harder to forge, and in 1965 the British engineer Denys Fisher turned plastic rings and toothed wheels into a drawing toy loved around the world. The maths is exact. A wheel with r teeth rolling inside a ring with R teeth, with the pen a distance d from the wheel's centre, traces a hypotrochoid: x = (R − r)·cos t + d·cos((R − r)·t / r) and y = (R − r)·sin t − d·sin((R − r)·t / r). Rolled around the outside of the ring, it traces an epitrochoid. Because the teeth cannot slip, every pattern closes on itself: if g is the greatest common divisor of R and r, the pattern has R ÷ g petals, and the wheel goes round the ring r ÷ g times before the line meets its start. A 96-tooth ring with a 60-tooth wheel gives 8 petals in 5 laps; change to a 63-tooth wheel and you get 32 petals in 21 laps.