Skip to content

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

1.8 KB
Raw Blame
{
 "commands": [
  {
   "command": "solid.box",
   "params": {
    "length": 100.0,
    "width": 60.0,
    "height": 40.0,
    "body_name": "Trough"
   }
  },
  {
   "command": "sketch.create",
   "params": {
    "plane": "XZ",
    "name": "FallX"
   }
  },
  {
   "command": "sketch.line",
   "params": {
    "points": [
     [
      0,
      0
     ],
     [
      100.0,
      0
     ],
     [
      50.0,
      0.5236519478465276
     ]
    ],
    "closed": true
   }
  },
  {
   "command": "sketch.finish",
   "params": {}
  },
  {
   "command": "solid.extrude",
   "params": {
    "sketch": "FallX",
    "distance": 60.0,
    "operation": "new",
    "body_name": "FallX"
   }
  },
  {
   "command": "sketch.create",
   "params": {
    "plane": "YZ",
    "name": "FallY"
   }
  },
  {
   "command": "sketch.line",
   "params": {
    "points": [
     [
      0,
      0
     ],
     [
      60.0,
      0
     ],
     [
      30.0,
      -0.5236519478465276
     ]
    ],
    "closed": true
   }
  },
  {
   "command": "sketch.finish",
   "params": {}
  },
  {
   "command": "solid.extrude",
   "params": {
    "sketch": "FallY",
    "distance": 100.0,
    "operation": "new",
    "body_name": "FallY"
   }
  },
  {
   "command": "solid.combine",
   "params": {
    "target": "FallX",
    "tools": [
     "FallY"
    ],
    "operation": "intersect"
   }
  },
  {
   "command": "solid.combine",
   "params": {
    "target": "Trough",
    "tools": [
     "FallX"
    ],
    "operation": "join"
   }
  },
  {
   "command": "solid.box",
   "params": {
    "length": 20,
    "width": 20,
    "height": 20,
    "corner": [
     100.0,
     20,
     20
    ],
    "operation": "join",
    "targets": [
     "Trough"
    ]
   }
  },
  {
   "command": "solid.shell",
   "params": {
    "faces": [
     [
      50,
      30,
      40.0
     ]
    ],
    "thickness": 2.0
   }
  }
 ]
}