extrude_polygon
Extrude a closed 2D polygon from a point list by a specified height on XY, XZ, or YZ planes, with optional offset and hole cutouts, to create a 3D CAD solid.
Instructions
Extrude a closed 2D polygon (list of [a,b] points, no need to repeat the first) by height mm.
plane XY: points are (x,y), extrusion along +Z. XZ: points are (x,z), extrusion along +Y. YZ: points are (y,z),
extrusion along +X. offset moves the profile along the extrusion axis first. holes is an optional list of
polygons cut out of the profile. Example L-bracket profile in XZ: [[0,0],[60,0],[60,5],[5,5],[5,40],[0,40]].
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"doc": "<doc>",
"name": "<name>",
"points": "<points>",
"height": "<height>"
},
"name": "extrude_polygon"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc | Yes | ||
| name | Yes | ||
| color | No | ||
| holes | No | ||
| plane | No | XY | |
| height | Yes | ||
| offset | No | ||
| points | Yes | ||
| material | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |