Soft wax cells relax into a Voronoi comb; wall length, wax and honey capacity are measured against the hexagonal Hales bound.
The science
Soft cells in a periodic patch. Each cell is a disc of diameter D = s a where a = √(2 / (√3 N)) is the hexagonal lattice spacing for N cells in a unit box and s is the size slider. Overlapping discs repel with a linear spring, F = k (D - d), and the positions follow overdamped motion plus thermal noise (the wax temperature): dx = F dt + √(2 T dt) ξ. With s > 1 the cells are crowded; they push each other into the densest arrangement, the hexagonal lattice. With s < 0.9 there is no contact and the arrangement stays disordered. A square grid is unstable under crowding and shears into hexagons.
The comb walls. The wax wall between two cells is the perpendicular bisector of their centres, so the tiling is the Voronoi diagram, computed exactly by clipping each cell with the bisectors of its neighbours (Sutherland-Hodgman). Cell area, perimeter and number of sides are read from these polygons; the order parameter is ψ6 = |⟨ e6iθ ⟩| over neighbour bonds.
Hales honeycomb bound. For cells of equal area A the shared wall length per cell is at least 3 √(2 / (3√3)) √A = 1.8612 √A, reached only by regular hexagons (T. Hales, 2001). Squares need 2.000 √A and triangles 2.280 √A, so the hexagonal comb saves 7 % and 18 % of the wax. Circular cells would be shortest per cell (3.545 √A perimeter) but cannot tile: 9.3 % of the area would be gaps.
Real numbers. Worker cells are about 5.2 mm across flats, walls about 0.07 mm, depth 11 to 12 mm: area A = (√3/2) w² gives about 430 cells per dm² per side. Wax per cell is (wall length × depth + A) × thickness × 0.96 mg/mm³ and honey is 1.42 g/cm³. The wall thickness is drawn five times thicker in 3D so it stays visible. The "6 to 8 kg of honey burned per kg of wax" figure is a commonly quoted order of magnitude and varies between studies.
Independent checks. (1) A perfect hexagonal lattice through the same Voronoi routine gives six sides for every cell and P/√A = 2√(2√3) = 3.7224. (2) The Voronoi areas sum to the unit box area to 1e-9. (3) The wall length of the current patch is compared with the hexagonal minimum for the same cell areas. (4) Regular polygons are measured by shoelace area and edge lengths and compared with closed forms (triangle 4.559, square 4, hexagon 3.722).
Honest simplifications. Real bees do not push discs: the comb is built by workers shaping warm, soft wax (the "thermoplastic flow" explanation of Pirk et al.), and the details are still debated. Here only the geometry and wax economy of a flat comb are modelled. No cell-bottom pyramids, no tilt of the cells, no mechanical strength or temperature-dependent wax creep, a periodic patch instead of a frame with edges.
What to try: press Crowded cells and watch the green hexagon fraction climb while the wall-length excess falls towards zero; compare Square grid, which becomes hexagons by itself; use Melt and cool to see slow cooling leave fewer defects than a quick quench; make the cells loose and see that no order appears.