Skip to content

SolidCraft: an open-source parametric 3D CAD application built in pure Rust. Desktop, web, and automation through MCP.

1.4 KB
Raw Blame
{
 "commands": [
  {
   "command": "solid.torus",
   "params": {
    "major": 20,
    "minor": 8,
    "body_name": "Ring"
   }
  },
  {
   "command": "solid.box",
   "params": {
    "length": 19,
    "width": 26,
    "height": 6,
    "corner": [
     -6,
     -13,
     -3
    ],
    "operation": "cut"
   }
  },
  {
   "command": "face.delete",
   "params": {
    "body": "Ring",
    "faces": [
     [
      12.8,
      0,
      3
     ],
     [
      12.8,
      0,
      -3
     ],
     [
      13,
      0,
      0
     ],
     [
      0,
      13,
      0
     ],
     [
      0,
      -13,
      0
     ],
     [
      -6,
      12,
      0
     ],
     [
      -6,
      -12,
      0
     ]
    ],
    "heal": false
   }
  },
  {
   "command": "surface.patch",
   "params": {
    "body": "Ring",
    "edges": [
     [
      6.417783810682518,
      -10.789476030783234,
      -3
     ],
     [
      6.417783810682518,
      10.789476030783234,
      -3
     ],
     [
      6.417783810682518,
      10.789476030783234,
      3
     ],
     [
      6.417783810682518,
      -10.789476030783234,
      3
     ],
     [
      -6,
      10.39230584418982,
      0
     ],
     [
      -6,
      -10.39230584418982,
      0
     ]
    ],
    "continuity": "g0",
    "body_name": "Lid"
   }
  },
  {
   "command": "surface.stitch",
   "params": {
    "bodies": [
     "Ring",
     "Lid"
    ]
   }
  }
 ]
}