// 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: Spur gear, module 2, 24 teeth, 8 mm thick, 8 mm bore
// template: gear
// printable: Design for 3D printing was off
{
  "plan": "Spur gear, module 2, 24 teeth (pitch diameter 48.00 mm), 8 mm thick, pressure angle 20 degrees, on z=0. 8 mm through bore. Teeth are vertical, so the blank prints without supports.",
  "issues": [
    {"type": "assumption", "msg": "Pressure angle was not stated; 20 degrees used.", "ref": "$pressure"}
  ],
  "params": {
    "module": 2,
    "teeth": 24,
    "thickness": 8,
    "bore": 8,
    "hub_d": 0,
    "hub_h": 0,
    "pressure": 20
  },
  "steps": [
    {
      "id": "gear",
      "op": "spur_gear",
      "module": "=$module",
      "teeth": "=$teeth",
      "thickness": "=$thickness",
      "bore": 0,
      "pressure_angle_deg": "=$pressure"
    },
    {"id": "axle", "op": "hole", "target": "gear", "face": "top", "positions": [[0, 0]], "diameter": "=$bore"}
  ],
  "result": "axle"
}
