// 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: Round flange 60 mm diameter, 8 mm thick, 20 mm center bore, six 5.5 mm holes on a 44 mm bolt circle
// curated: written for this example; the language model is not called
// printable: Design for 3D printing was off
{
  "plan": "1. Disc 60 mm diameter, 8 mm thick, base center at the origin, z 0..8. 2. 20 mm bore through from the top at (0, 0). 3. Six 5.5 mm holes from the top on a 44 mm bolt circle (radius 22), first hole on +X.",
  "units": "mm",
  "params": {
    "od": 60,
    "t": 8,
    "bore": 20,
    "hole": 5.5,
    "bcd": 44
  },
  "steps": [
    {"id": "disc", "op": "cylinder", "diameter": "$od", "height": "$t"},
    {"id": "bore", "op": "hole", "target": "disc", "face": "top", "positions": [[0, 0]], "diameter": "$bore"},
    {
      "id": "bolts",
      "op": "hole",
      "target": "bore",
      "face": "top",
      "positions": {"polar": {"count": 6, "radius": "=$bcd/2", "center": [0, 0], "start_deg": 0}},
      "diameter": "$hole"
    }
  ],
  "result": "bolts"
}
