Pattern
Table edge
Back side & cable openings

Every active cell gets a ring on the back: pocket the inner circle for the LED electronics, clear everything between outer circle and cell edge down to the acrylic, and cut two openings through the ring for the wiring.

Export settings

The SVGs use millimeter units with named layers: table boundary, cell islands, cell boundary, outer and inner ring, openings. Removed cells are left out.

ShareIncludes removed cells
Table–
Cells–
Rings–
Joint area–

Honeycomb Table Generator

Robert Eisele

A honeycomb table is a wooden table top that is milled into hexagonal cells, with a joint of clear or frosted acrylic (or cast epoxy) running between them. Put a small LED board under every cell and the joints glow in a honeycomb pattern, or let the table react to touch cell by cell. The work happens on the CNC router, and the hard part is not the milling itself but getting clean CAM geometry: a pocket boundary, the cells as islands, and on the back side a pocket per cell for the electronics with openings for the wiring. This generator produces exactly that geometry as millimeter SVG files, and lets you shape the table by switching off cells.

How to Use the Generator

The Geometry of the Grid

The cells are flat-topped regular hexagons. A hexagon with side length \(s\) measures \(\sqrt{3}\,s\) across flats and \(2s\) across corners, so the side follows from the cell size \(F\) you enter:

\[s = \frac{F}{\sqrt{3}}\]

Flat-topped hexagons tile the plane in columns. Neighboring columns are \(\tfrac{3}{2}s\) apart and every odd column is shifted down by half a cell, while cells in one column are \(\sqrt{3}\,s = F\) apart:

\[\Delta x = \tfrac{3}{2}\,s, \qquad \Delta y = \sqrt{3}\,s, \qquad y_{c,r} = r\,\Delta y + (c \bmod 2)\,\frac{\Delta y}{2}\]

The joint is created by shrinking every cell: each edge moves inward by half the gap \(g\), so two neighboring cells end up exactly \(g\) apart and every joint in the table has the same width. A shrunken hexagon measures \(F - g\) across flats and \(2s - \tfrac{2g}{\sqrt{3}}\) across corners. For \(C\) columns and \(R\) rows the grid therefore spans

\[W_\text{grid} = \tfrac{3}{2}\,s\,(C-1) + 2s - \frac{2g}{\sqrt{3}}, \qquad H_\text{grid} = (R-1)\,F + \frac{F}{2}\,[C>1] + F - g\]

and the table adds the margin \(m\) on every side: \(W = W_\text{grid} + 2m\) and \(H = H_\text{grid} + 2m\). With the defaults (\(F = 90\) mm, \(g = 10\) mm, 10 × 5 cells, \(m = 10\) mm) this gives a table of about 814 × 505 mm.

For the rhombus pattern every hexagon is split into three rhombi that meet in its center, with angles of 60° and 120°. Each rhombus is shrunk by \(g/2\) the same way, so the joints of the cube pattern have the same width as in the honeycomb.

When you choose Mill to edge, the table rectangle stays the same, but the generator adds three extra rings of cells around the grid and clips every cell polygon to the table with the Sutherland–Hodgman algorithm. Cells that would become slivers smaller than 0.0001 mm² are dropped.

Milling the Top: One Pocket with Islands

The top file contains the table rectangle on layer TABLE_BOUNDARY and every active cell as a closed path on layer CELL_ISLANDS. In the CAM software you create a single pocket operation inside the boundary and mark the cells as islands. The pocket clears the joints and the margin, the cells stay standing. This is far more robust than tracing hundreds of individual joint contours, and every cell keeps a defined outline even at the table edge.

The endmill has to fit into the joint, so choose a cutter diameter no larger than the gap, for example a 6 mm cutter for a 10 mm joint. The island corners are outside corners and stay sharp; only the inside corners of the pocket at the table frame get the cutter radius. Mill the pocket to the depth of your acrylic inlay or epoxy pour, fill it, and plane or face the top flush once the filling has cured.

Milling the Back: Rings for the Electronics

After flipping the panel, every active cell gets a ring. The generator sizes the ring from the largest circle that fits into the cell around its centroid: with \(d\) the shortest distance from the centroid to a cell edge,

\[r_\text{out} = 0.84\,d - \max(0.8,\ 0.12\,g), \qquad r_\text{in} = 0.68\,r_\text{out}\]

so the ring never touches the cell edge and leaves enough wood between the electronics pocket and the joint. The back file contains three operations per cell:

  1. Electronics pocket. Pocket inside BACK_INNER for the LED board or touch sensor.
  2. Clearing to the acrylic. Pocket inside CELL_BOUNDARY with BACK_OUTER as an island. This removes the wood between the ring and the joint down to the acrylic, so light reaches the joint from below.
  3. Cable openings. The two annular sectors on BACK_OPENINGS cut through the ring so the wiring can pass from cell to cell. Their half angle is \(\varphi = \frac{w}{2\,r_\text{mid}}\) with \(r_\text{mid} = \tfrac{1}{2}(r_\text{in} + r_\text{out})\), so the width \(w\) you enter is the arc width on the middle of the ring.

The opening angle sets the wiring direction. At 90° the openings point up and down and line up along each column of hexagons, which is convenient for daisy-chained LED strips. At 0° they point left and right.

The Exported Files

All files are plain SVG with mm units and a matching viewBox, so one SVG unit is one millimeter in any CAM program that respects the document size. The table starts at the origin and all coordinates are positive. Every operation has its own named group and color:

LayerColorUse
TABLE_BOUNDARYblueOuter pocket boundary, also the panel outline
CELL_ISLANDSblackTop: islands of the joint pocket
CELL_BOUNDARYblackBack: limit of the clearing pocket
BACK_OUTER, BACK_INNERredBack: ring outline and electronics pocket
BACK_OPENINGSgreenBack: two cable openings per ring

The stroke width is only there to make the paths visible when you open the file; CAM software uses the path geometry. Remember that the back side is milled after flipping the panel: mirror the back file in your CAM setup around the axis you flip about, or flip the stock around the same axis that you use for the zero point.

Practical Tips