Skip to content

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

2.3 KB
Raw Blame
{
 "commands": [
  {
   "command": "sketch.create",
   "params": {
    "plane": {
     "origin": [
      0,
      0,
      0
     ],
     "x_dir": [
      1,
      0,
      0
     ],
     "y_dir": [
      0,
      1,
      0
     ]
    },
    "name": "U0"
   }
  },
  {
   "command": "sketch.line",
   "params": {
    "points": [
     [
      0,
      0
     ],
     [
      20,
      0
     ]
    ],
    "infer": false
   }
  },
  {
   "command": "sketch.finish",
   "params": {}
  },
  {
   "command": "sketch.create",
   "params": {
    "plane": {
     "origin": [
      0,
      20,
      0
     ],
     "x_dir": [
      1,
      0,
      0
     ],
     "y_dir": [
      0,
      0,
      1
     ]
    },
    "name": "U1"
   }
  },
  {
   "command": "sketch.line",
   "params": {
    "points": [
     [
      0,
      10
     ],
     [
      20,
      0
     ]
    ],
    "infer": false
   }
  },
  {
   "command": "sketch.finish",
   "params": {}
  },
  {
   "command": "sketch.create",
   "params": {
    "plane": {
     "origin": [
      0,
      0,
      0
     ],
     "x_dir": [
      0,
      1,
      0
     ],
     "y_dir": [
      0,
      0,
      1
     ]
    },
    "name": "V0"
   }
  },
  {
   "command": "sketch.line",
   "params": {
    "points": [
     [
      0,
      0
     ],
     [
      20,
      10
     ]
    ],
    "infer": false
   }
  },
  {
   "command": "sketch.finish",
   "params": {}
  },
  {
   "command": "sketch.create",
   "params": {
    "plane": {
     "origin": [
      0,
      0,
      0
     ],
     "x_dir": [
      1,
      0,
      0
     ],
     "y_dir": [
      0,
      1,
      0
     ]
    },
    "name": "V1"
   }
  },
  {
   "command": "sketch.line",
   "params": {
    "points": [
     [
      20,
      0
     ],
     [
      20,
      20
     ]
    ],
    "infer": false
   }
  },
  {
   "command": "sketch.finish",
   "params": {}
  },
  {
   "command": "surface.boundary",
   "params": {
    "u": [
     {
      "sketch": "U0",
      "curves": [
       "l1"
      ]
     },
     {
      "sketch": "U1",
      "curves": [
       "l1"
      ]
     }
    ],
    "v": [
     {
      "sketch": "V0",
      "curves": [
       "l1"
      ]
     },
     {
      "sketch": "V1",
      "curves": [
       "l1"
      ]
     }
    ],
    "body_name": "Saddle"
   }
  }
 ]
}