Voronoi-pattern panel
2D pattern → extrude
Seeded random sites → half-plane-intersection cells → extrude + subtract holes.
What it is
A flat panel with Voronoi-tessellated holes — a common decorative / acoustic / structural pattern (speaker grilles, plant trellises, cable-management panels). Sites are sampled deterministically from a seeded PRNG, each Voronoi cell is computed by half-plane intersection, shrunken inward to leave wall material, then extruded and subtracted from a board.
Why visual feedback matters
Tuning a Voronoi pattern is a classic "stare at the render, twiddle a parameter" exercise: cell count, seed, gap, edge margin all interact, and the failure modes — tiny slivers at the boundary, cells that collapse to nothing, walls so thin they print as a single bead — are obvious in the iso render and ambiguous in the parameter table.
Screenshots
Parameters
Parameters 7
| Name | Default | Description |
|---|---|---|
width | — mm | Board width. |
height | — mm | Board height. |
thickness | — mm | Board thickness. |
cellCount | 25 | Number of Voronoi sites. |
seed | 7 | PRNG seed; change for a different pattern. |
margin | 4 mm | Keep sites this far inside the panel edge. |
gap | 1.4 mm | Wall thickness between adjacent cells. |
Try it
- Open in your browser → openjscad.xyz, bundled single-file
- Source on GitHub →
- Full walkthrough on GitHub →