add_extruded_profile
Extrudes a closed 2D polygon defined by points in millimeters into a solid at a specified depth, with optional corner radii, rotation, draft taper, and separate-body output.
Instructions
Extrude a closed polygon into a solid: points_mm = [[x,y], ...] in mm.
The polygon (first-plane coordinates, same as add_box) is auto-closed and extruded by depth_mm. Unlocks arbitrary prismatic shapes (brackets, profiles, polygons). corner_radii_mm rounds the corners with real sketch fillets: one radius for all, or one per vertex (0 = sharp); equal radii share one dimension ('radius', else 'r'). rotate_deg turns the profile counterclockwise about about_mm ([x, y], the origin by default) first: draw a crank or a lug straight, then set it at its angle. draft_deg tapers the walls inwards as they rise (negative: outwards), a dimension 'draft' (a moulded boss, a printable taper). merge=False keeps the result a separate body: list_bodies, combine_bodies. Returns mass properties (volume = polygon area * depth; a right-angled corner of radius r loses r^2 (1 - pi/4), a concave one gains it).
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": {
"points_mm": "<points_mm>",
"depth_mm": "<depth_mm>"
},
"name": "add_extruded_profile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Extrude | |
| merge | No | ||
| about_mm | No | ||
| depth_mm | Yes | ||
| draft_deg | No | ||
| points_mm | Yes | ||
| rotate_deg | No | ||
| corner_radii_mm | No |