work/3dgen
3D generator · printable objects
3DGEN
A parametric workshop for 3D-printable objects. Pick a recipe, walk a guided wizard of sliders, watch it rebuild in 3D, export the STL.
Live

3DGEN is the first of the generator apps here and the one that set the pattern for the others. Each object is a recipe: a set of parameters and a function that turns them into geometry. The interface knows nothing about dice or planters; it only knows sliders and dropdowns, so a new recipe needs no new UI code.
- Runs on
- Web app on the home server
- Built with
- three.js, @jscad/modeling (CSG), Vite, a dependency-free Node server, Docker
- Started
- July 2026
Four recipes
- Dice tower: seven wizard steps from shell to tray. Tumbling baffles are sized from the largest die you plan to roll (d6 up to d20), with a funnel entry, a full-width scooped exit, flared base, buttress ribs, a snap-off brim, and a separate or built-in tray with a snap-in lid. An optional baffle angle lets it print without supports.
- Self-watering insert: a two-part sub-irrigated planter insert with a vented reservoir and wicking chamber.
- Architectural planter bases: eight styles from Doric and Roman pedestal through Art Deco ziggurat and Greek krater to Bauhaus, Brutalist, mid-century and parametric. They all share one fit-diameter interface, so any insert drops into any base.
- Mushroom figurines: five species (fly agaric, porcini, morel, chanterelle, shaggy mane), each with its real silhouette, underside (gills, pores or ridges) and cap texture, on a stand.
Dice tower
Baffles you can see
Cutaway slices the model so the inside is checkable before a print starts.
The default dice tower with its red catch tray, on the Tower Shell step. Cutaway mode slices the tower to show the internal baffles. Hex cross-section with six baffles, on the Baffles step. The same hex tower in cutaway. Separate tray and flush lid with a wing grip, on the Tray/Lid step.
Planter
A base and the insert that waters it
Architectural planter base, sized to fit the watering insert. The Art Deco ziggurat style. The two-part self-watering insert: reservoir, soil chamber and plug.
Mushrooms
Grown from parameters
A morel, honeycomb cap and all. A chanterelle seen from below, showing its decurrent ridges.
How it's built
- Geometry is constructive solid geometry generated in the browser with @jscad/modeling, straight from the parameters. An earlier effects-and-regions system was removed on purpose to keep it purely parametric.
- A Cutaway button slices the model down its axis so you can see baffles, funnel and chute from the inside.
- Every change lands on an undo/redo timeline. Projects save to the server, not the browser.
- Geometry is tested in Node: watertightness, plus "will a die actually pass" and tumble probes for the tower. The front end is checked by rendering it headless and looking.
Details worth a look
- The baffle reach is bounded by die clearance, so a d20 both tumbles and falls through.
- The watering insert is designed for plastic. A sealed plastic reservoir cannot seep and vacuum-locks without a vent, so the design wicks instead and the fill tube doubles as the vent.








