Skip to content

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

883 B
Raw Blame
{
 "commands": [
  {
   "command": "sketch.create",
   "params": {
    "plane": {
     "origin": [
      0,
      0,
      0
     ],
     "x_dir": [
      1,
      0,
      0
     ],
     "y_dir": [
      0,
      1,
      0
     ]
    },
    "name": "S"
   }
  },
  {
   "command": "sketch.line",
   "params": {
    "points": [
     [
      0,
      0
     ],
     [
      30,
      0
     ],
     [
      30,
      20
     ]
    ]
   }
  },
  {
   "command": "sketch.finish",
   "params": {}
  },
  {
   "command": "surface.extrude",
   "params": {
    "sketch": "S",
    "curves": [
     "l1",
     "l2"
    ],
    "distance": 20
   }
  },
  {
   "command": "surface.thicken",
   "params": {
    "bodies": [
     "Body1"
    ],
    "thickness": -2,
    "operation": "new"
   }
  },
  {
   "command": "solid.remove",
   "params": {
    "bodies": [
     "Body1"
    ]
   }
  }
 ]
}