add_swept_profile
Sweep a closed profile along a 2D path with rounded corners to create extrusions for rails, gaskets, or trim.
Instructions
Sweep an arbitrary closed PROFILE (cross-section) along a 2D PATH.
profile_mm = [[u,v],…] in mm: the closed cross-section on the Right plane (u → world +Y, v → world +Z), centred near the origin. path_mm = [[x,y],…] in mm on the Front plane — MUST start at the origin heading +X (the profile is perpendicular to the path there). Path corners are rounded with bend_radius_mm. Volume = profile_area · path_length. For non-round extrusions along a path (rails, gaskets, trim, channels). Returns mass properties. Use new_part first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Sweep | |
| path_mm | Yes | ||
| profile_mm | Yes | ||
| bend_radius_mm | No |