Skip to content

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

1.9 KB
Raw Blame
{
 "commands": [
  {
   "command": "sketch.create",
   "params": {
    "plane": "XY",
    "name": "Base"
   }
  },
  {
   "command": "sketch.line",
   "params": {
    "points": [
     [
      1.2246467991473533e-15,
      20.0
     ],
     [
      -20.0,
      2.4492935982947065e-15
     ]
    ]
   }
  },
  {
   "command": "sketch.line",
   "params": {
    "points": [
     [
      -20.0,
      2.4492935982947065e-15
     ],
     [
      -3.673940397442059e-15,
      -20.0
     ]
    ]
   }
  },
  {
   "command": "sketch.line",
   "params": {
    "points": [
     [
      -3.673940397442059e-15,
      -20.0
     ],
     [
      20.0,
      -4.898587196589413e-15
     ]
    ]
   }
  },
  {
   "command": "sketch.line",
   "params": {
    "points": [
     [
      20.0,
      -4.898587196589413e-15
     ],
     [
      1.2246467991473533e-15,
      20.0
     ]
    ]
   }
  },
  {
   "command": "sketch.finish",
   "params": {}
  },
  {
   "command": "sketch.create",
   "params": {
    "plane": {
     "origin": [
      0,
      0,
      30
     ],
     "x_dir": [
      1,
      0,
      0
     ],
     "y_dir": [
      0,
      1,
      0
     ]
    },
    "name": "Top"
   }
  },
  {
   "command": "sketch.point",
   "params": {
    "point": [
     0,
     0
    ],
    "id": "apex"
   }
  },
  {
   "command": "sketch.finish",
   "params": {}
  },
  {
   "command": "solid.loft",
   "params": {
    "sections": [
     {
      "sketch": "Base"
     },
     {
      "sketch": "Top",
      "point": "apex"
     }
    ]
   }
  },
  {
   "command": "solid.fillet",
   "params": {
    "edges": [
     [
      6.123233995736766e-16,
      10.0,
      15.0
     ],
     [
      -10.0,
      1.2246467991473533e-15,
      15.0
     ],
     [
      -1.8369701987210296e-15,
      -10.0,
      15.0
     ],
     [
      10.0,
      -2.4492935982947065e-15,
      15.0
     ]
    ],
    "radius": 2,
    "type": "curvature"
   }
  }
 ]
}