add_swept_pipe
Sweep a circular profile along a 2D centreline path on the Front plane to create a pipe, tube, or rod, with bend radius for corners and optional spline smoothing. Returns mass properties.
Instructions
Sweep a circular profile (pipe/tube/rod) along a 2D path on the Front plane.
path_mm = [[x, y], …] in mm is the centreline. Interior corners are rounded with bend_radius_mm (required when the path turns; a 2-point straight path needs none); smooth=True runs a spline through the points instead, a flowing curve. diameter_mm = outer Ø; the round profile is auto-generated perpendicular to the path. Returns mass properties (pi r^2 x path_length_mm). Use new_part first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Pipe | |
| smooth | No | ||
| path_mm | Yes | ||
| diameter_mm | Yes | ||
| bend_radius_mm | No |