add_extruded_profile
Extrude a closed polygon profile into a solid, with options for plane/face placement, rotation, spline shapes, corner fillets, draft taper, and merging or separate bodies.
Instructions
Extrude a closed polygon into a solid; it is auto-closed.
Default: points_mm = [[x,y], ...] on the first plane (same as add_box), extruded by depth_mm along +Z. 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. spline=True runs a smooth closed spline through the points instead (organic shapes).
face='+z' (or '-x', ...): a boss grown out of ANY planar face; points_mm = [[x,y,z], ...] on that face (the face facing that way through them, as for add_hole). For pads, ledges, mounting blocks.
plane='Plane1' (add_plane, or 'front'/'top'/'right'): points_mm = 3D [x, y, z] points ON the plane (origin + u x_axis + v y_axis from add_plane); depth_mm along its normal, the other way with reverse=True.
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'). 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. An argument that does not go with the variant is refused. 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).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| face | No | ||
| name | No | ||
| merge | No | ||
| plane | No | ||
| spline | No | ||
| reverse | No | ||
| about_mm | No | ||
| depth_mm | Yes | ||
| draft_deg | No | ||
| points_mm | Yes | ||
| rotate_deg | No | ||
| corner_radii_mm | No |