Skip to content

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

881 B
Raw Blame
{
 "commands": [
  {
   "command": "sketch.create",
   "params": {
    "plane": {
     "origin": [
      0,
      0,
      0
     ],
     "x_dir": [
      1,
      0,
      0
     ],
     "y_dir": [
      0,
      0,
      1
     ]
    },
    "name": "Profile"
   }
  },
  {
   "command": "sketch.line",
   "params": {
    "points": [
     [
      0,
      0
     ],
     [
      10,
      0
     ],
     [
      20,
      38.1
     ],
     [
      0,
      38.1
     ]
    ],
    "closed": true
   }
  },
  {
   "command": "sketch.finish",
   "params": {}
  },
  {
   "command": "solid.revolve",
   "params": {
    "sketch": "Profile",
    "axis": "y",
    "body_name": "Cone"
   }
  },
  {
   "command": "solid.shell",
   "params": {
    "faces": [
     [
      3,
      0,
      0
     ],
     [
      3,
      0,
      38.1
     ]
    ],
    "thickness": "0.125"
   }
  }
 ]
}