// CADL v1 - editable geometry source for sd/design (JSON + // comments).
// Edit numbers/params and rebuild: web page 'Rebuild', POST /api/build, or: python build.py part.cadl
// prompt: Block 50x30x12 mm with 4 mm rounded vertical corners and a 1.5 mm chamfer on the top edges
// curated: written for this example; the language model is not called
// printable: Design for 3D printing was off
{
  "plan": "1. Block 50x30x12, base center at the origin, z 0..12. 2. Fillet the four vertical edges, radius 4 mm. 3. Chamfer the top edges 1.5 mm.",
  "units": "mm",
  "params": {
    "w": 50,
    "d": 30,
    "h": 12,
    "fillet": 4,
    "chamfer": 1.5
  },
  "steps": [
    {"id": "block", "op": "box", "size": ["$w", "$d", "$h"]},
    {"id": "rounded", "op": "fillet", "target": "block", "radius": "$fillet", "edges": "vertical"},
    {"id": "top", "op": "chamfer", "target": "rounded", "distance": "$chamfer", "edges": "top"}
  ],
  "result": "top"
}
