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": "XY",
    "name": "Base"
   }
  },
  {
   "command": "sketch.line",
   "params": {
    "points": [
     [
      1.2246467991473533e-15,
      20.0
     ],
     [
      -19.02113032590307,
      6.18033988749895
     ]
    ]
   }
  },
  {
   "command": "sketch.line",
   "params": {
    "points": [
     [
      -19.02113032590307,
      6.18033988749895
     ],
     [
      -11.755705045849465,
      -16.180339887498945
     ]
    ]
   }
  },
  {
   "command": "sketch.line",
   "params": {
    "points": [
     [
      -11.755705045849465,
      -16.180339887498945
     ],
     [
      11.755705045849458,
      -16.180339887498953
     ]
    ]
   }
  },
  {
   "command": "sketch.line",
   "params": {
    "points": [
     [
      11.755705045849458,
      -16.180339887498953
     ],
     [
      19.021130325903073,
      6.180339887498944
     ]
    ]
   }
  },
  {
   "command": "sketch.line",
   "params": {
    "points": [
     [
      19.021130325903073,
      6.180339887498944
     ],
     [
      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
     ],
     [
      -9.510565162951535,
      3.090169943749475,
      15.0
     ],
     [
      -5.877852522924733,
      -8.090169943749473,
      15.0
     ],
     [
      5.877852522924729,
      -8.090169943749476,
      15.0
     ],
     [
      9.510565162951536,
      3.090169943749472,
      15.0
     ]
    ],
    "radius": 2,
    "type": "curvature"
   }
  }
 ]
}