add_loft
Create a lofted solid or cut by blending two or more closed sketches or coordinate profiles across parallel planes, with optional cut and mass-property results.
Instructions
Loft (blend) 2+ closed profiles, given one of two ways.
sketches=['Heel', 'Toe']: closed sketches by name (add_sketch on any planes), in order; cut=True cuts the lofted shape away (a straight bevel gear's tooth gap is a loft cut between heel and toe profiles).
profiles_mm + heights_mm: per profile a polygon [[x,y], ...] (mm) in Front-plane coords, or a round section {"center_mm": [x, y], "diameter_mm": d}, on parallel planes at heights_mm along +Z (same length, strictly increasing, starting at 0). A 2-profile loft is a ruled transition; 3+ blend smoothly. Each profile starts at its first vertex (a round one on +x).
Give profiles in the same order and sense so they do not twist. Returns mass properties.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cut | No | ||
| name | No | ||
| sketches | No | ||
| heights_mm | No | ||
| profiles_mm | No |