Skip to content

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

4.5 KB
Raw Blame
{
 "commands": [
  {
   "command": "sketch.create",
   "params": {
    "plane": {
     "origin": [
      0,
      0,
      0
     ],
     "x_dir": [
      1,
      0,
      0
     ],
     "y_dir": [
      0,
      0,
      1
     ]
    },
    "name": "Base"
   }
  },
  {
   "command": "sketch.line",
   "params": {
    "points": [
     [
      0,
      0
     ],
     [
      25,
      0
     ]
    ]
   }
  },
  {
   "command": "sketch.arc.three_point",
   "params": {
    "start": [
     25,
     0
    ],
    "through": [
     29.5,
     1.5
    ],
    "end": [
     32,
     7
    ]
   }
  },
  {
   "command": "sketch.line",
   "params": {
    "points": [
     [
      32,
      7
     ],
     [
      0,
      7
     ],
     [
      0,
      0
     ]
    ]
   }
  },
  {
   "command": "sketch.finish",
   "params": {}
  },
  {
   "command": "solid.revolve",
   "params": {
    "sketch": "Base",
    "axis": "y",
    "body_name": "Cup"
   }
  },
  {
   "command": "sketch.create",
   "params": {
    "plane": "XY",
    "name": "Wall",
    "offset": 7
   }
  },
  {
   "command": "sketch.spline.fit_point",
   "params": {
    "points": [
     [
      32.5,
      0.0
     ],
     [
      32.127,
      2.811
     ],
     [
      31.268,
      5.513
     ],
     [
      30.427,
      8.153
     ],
     [
      29.835,
      10.859
     ],
     [
      29.228,
      13.629
     ],
     [
      28.146,
      16.25
     ],
     [
      26.418,
      18.498
     ],
     [
      24.322,
      20.409
     ],
     [
      22.274,
      22.274
     ],
     [
      20.409,
      24.322
     ],
     [
      18.498,
      26.418
     ],
     [
      16.25,
      28.146
     ],
     [
      13.629,
      29.228
     ],
     [
      10.859,
      29.835
     ],
     [
      8.153,
      30.427
     ],
     [
      5.513,
      31.268
     ],
     [
      2.811,
      32.127
     ],
     [
      0.0,
      32.5
     ],
     [
      -2.811,
      32.127
     ],
     [
      -5.513,
      31.268
     ],
     [
      -8.153,
      30.427
     ],
     [
      -10.859,
      29.835
     ],
     [
      -13.629,
      29.228
     ],
     [
      -16.25,
      28.146
     ],
     [
      -18.498,
      26.418
     ],
     [
      -20.409,
      24.322
     ],
     [
      -22.274,
      22.274
     ],
     [
      -24.322,
      20.409
     ],
     [
      -26.418,
      18.498
     ],
     [
      -28.146,
      16.25
     ],
     [
      -29.228,
      13.629
     ],
     [
      -29.835,
      10.859
     ],
     [
      -30.427,
      8.153
     ],
     [
      -31.268,
      5.513
     ],
     [
      -32.127,
      2.811
     ],
     [
      -32.5,
      0.0
     ],
     [
      -32.127,
      -2.811
     ],
     [
      -31.268,
      -5.513
     ],
     [
      -30.427,
      -8.153
     ],
     [
      -29.835,
      -10.859
     ],
     [
      -29.228,
      -13.629
     ],
     [
      -28.146,
      -16.25
     ],
     [
      -26.418,
      -18.498
     ],
     [
      -24.322,
      -20.409
     ],
     [
      -22.274,
      -22.274
     ],
     [
      -20.409,
      -24.322
     ],
     [
      -18.498,
      -26.418
     ],
     [
      -16.25,
      -28.146
     ],
     [
      -13.629,
      -29.228
     ],
     [
      -10.859,
      -29.835
     ],
     [
      -8.153,
      -30.427
     ],
     [
      -5.513,
      -31.268
     ],
     [
      -2.811,
      -32.127
     ],
     [
      -0.0,
      -32.5
     ],
     [
      2.811,
      -32.127
     ],
     [
      5.513,
      -31.268
     ],
     [
      8.153,
      -30.427
     ],
     [
      10.859,
      -29.835
     ],
     [
      13.629,
      -29.228
     ],
     [
      16.25,
      -28.146
     ],
     [
      18.498,
      -26.418
     ],
     [
      20.409,
      -24.322
     ],
     [
      22.274,
      -22.274
     ],
     [
      24.322,
      -20.409
     ],
     [
      26.418,
      -18.498
     ],
     [
      28.146,
      -16.25
     ],
     [
      29.228,
      -13.629
     ],
     [
      29.835,
      -10.859
     ],
     [
      30.427,
      -8.153
     ],
     [
      31.268,
      -5.513
     ],
     [
      32.127,
      -2.811
     ]
    ],
    "periodic": true
   }
  },
  {
   "command": "sketch.circle.center",
   "params": {
    "center": [
     0,
     0
    ],
    "radius": 25
   }
  },
  {
   "command": "sketch.finish",
   "params": {}
  },
  {
   "command": "solid.extrude",
   "params": {
    "sketch": "Wall",
    "distance": 90,
    "operation": "join",
    "targets": [
     "Cup"
    ]
   }
  }
 ]
}