Live app: https://dcm31--01a0e4ab4fc1756ca7cf7e39485c6fe7.web.val.run ·
Source: https://www.val.town/x/dcm31/donut-dish —
shared/mold.ts ·
frontend/viewer.ts ·
main.tsx ·
AGENTS.md ·
skills (in candle-molds): mold-design,
cad-vals ·
sibling: candle-molds
Raw source for agents (plain text): https://esm.town/v/dcm31/donut-dish/<path>, e.g.
https://esm.town/v/dcm31/donut-dish/shared/mold.ts
A two-piece, 3D-printable mold box for casting a plaster mold of a "bubble" (donut) dish, generated as watertight STLs in pure TypeScript with a three.js viewer. Everything fits a Bambu A1 mini (180 × 180 × 180 mm).
- Base — flange + spigot disc with the dish positive printed on top.
- Wall — ring that slips over the spigot and sits on the flange. Tape the seam.
- Pour plaster into the wall, over the dish. Lift the wall off, then lift the plaster off.
Default: Ø130 mm dish, 20 mm plaster wall, 25 mm of plaster over the top (~860 mL).
- Dish has no undercuts. Below the rim's outer and inner equators the walls go straight down with 2° draft (tangent to the rim), so plaster lifts straight up.
- Wall has 1° draft (narrower at the top) so it lifts up off the set plaster.
- Ring-to-spigot fit: 0.15 mm radial clearance, 6 mm overlap, 0.8 mm chamfer on the ring's inner bottom edge to absorb elephant's foot.
| Route | What |
|---|---|
/ | Viewer: Exploded / Assembled / Poured (section) views, sliders. State lives in the URL. |
/base.stl?gap=20&tube=22&floor=2.4&cover=25 | Base + dish STL |
/wall.stl?gap=20&tube=22&floor=2.4&cover=25 | Wall ring STL |
/source | Redirects to this val |
Params: gap plaster wall (sets dish Ø), tube rim thickness, floor dish floor height,
cover plaster above the dish. All clamped to printable ranges.
Rendering mermaid diagram...
shared/mold.ts— generator: 2D (r, z) profiles for plate, dish, ring and plaster, revolved into triangle soups; binary STL writer; volume. No deps; runs in Deno and the browser.main.tsx— Hono server: frontend + STL routes.frontend/—index.html,viewer.ts,style.css.