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": "sketch.create",
   "params": {
    "plane": {
     "origin": [
      0,
      0,
      0
     ],
     "x_dir": [
      1,
      0,
      0
     ],
     "y_dir": [
      0,
      1,
      0
     ]
    },
    "name": "Target sketch"
   }
  },
  {
   "command": "sketch.rectangle.two_point",
   "params": {
    "p0": [
     0,
     0
    ],
    "p1": [
     10,
     20
    ]
   }
  },
  {
   "command": "sketch.finish",
   "params": {}
  },
  {
   "command": "surface.patch",
   "params": {
    "sketch": "Target sketch",
    "body_name": "Target"
   }
  },
  {
   "command": "sketch.create",
   "params": {
    "plane": {
     "origin": [
      0,
      0,
      2
     ],
     "x_dir": [
      1,
      0,
      0
     ],
     "y_dir": [
      0,
      1,
      0
     ]
    },
    "name": "Raised"
   }
  },
  {
   "command": "sketch.rectangle.two_point",
   "params": {
    "p0": [
     12,
     0
    ],
    "p1": [
     20,
     20
    ]
   }
  },
  {
   "command": "sketch.finish",
   "params": {}
  },
  {
   "command": "surface.patch",
   "params": {
    "sketch": "Raised",
    "body_name": "Skirt"
   }
  },
  {
   "command": "surface.match",
   "params": {
    "body": "Skirt",
    "target": "Target",
    "edges": [
     [
      10,
      10,
      0
     ]
    ],
    "order": "g3"
   }
  },
  {
   "command": "surface.stitch",
   "params": {
    "bodies": [
     "Target",
     "Skirt"
    ]
   }
  }
 ]
}