h hopperCode

Recipe 3 — Loft Between Curves

What: Lofted surface through two or more profile curves.

Zone Map: [Curve_1][Curve_2][Curve_3] → [Loft]

Pipeline

[Curve_1]     [Curve_2]     [Curve_3]
 (profile)     (profile)      (profile)
    │             │              │
    └─────────────┼──────────────┘

               [Loft]


          → lofted surface

Tips: Curves must be in order (Shift List to fix). All should point same direction — Flip Curve if twisted. Closed profiles → solid-like brep.

⚠️ Data Matching Heuristic — Flatten when sources differ

When profile curves come from different components (e.g. original curve + offset curve, or edge extraction + drawn curve), each source produces its own data-tree branch. Loft receives N separate lists instead of one list of N curves → loft fails or produces garbage.

Fix: Set Loft.C to Flatten — merges branches into one list of profiles in sequence.

Rule: Profiles from ≥2 different components → flatten C. Single source (e.g. one Isotrim output) → default Item/List.

Output

A lofted surface through all profiles.

Next Steps

Cap Holes for solid brep · Recipe 4 extrude for thickness · Split with cutting geometry

mds/skills/gh-cookbook/reference/recipe-3-loft-curves.md / View source on GitHub ↗