sheet_flange
Bend a flange from a straight free edge of a flat sheet part; set angle, radius, direction, and length to model sheet-metal folds.
Instructions
Bend a flange off a free edge of a sheet part.
edge: a stable e_* tag from list_edges (or 'EdgeN'/int) on a STRAIGHT free edge
of a flat region — a bend line is the intersection of two planes, so an arc
cannot carry one and is rejected.
angle_deg: the bend angle, i.e. the deviation from flat, so 90 is a right-angle
flange. Must be in (0, 180].
inner_radius_mm: inside bend radius; defaults to the material thickness.
direction: 'up' (toward the region's outward normal) or 'down'.
length_from: what length_mm measures — the number most often misread on a
sheet drawing. 'outer' (default) to the outside virtual apex, which is what
a drawing dimension normally means; 'inner' to the inside apex; 'tangent'
for the straight leg past the end of the bend.
width_mm / offset_mm: narrow the flange to part of the picked edge.
k_factor: pins K for THIS bend only. Leave it unset and the choice defers to
sheet_unfold — the folded solid does not depend on K at all, only the flat
pattern does.
Consumes the input handle (it is hidden, having become part of the result).
Returns {handle, name, feature, kind, volume, angle_deg, inner_radius_mm, leg_tangent_mm, length_from, direction, span_mm, thickness_mm}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| edge | Yes | ||
| name | No | SheetFlange | |
| handle | Yes | ||
| k_factor | No | ||
| width_mm | No | ||
| angle_deg | No | ||
| direction | No | up | |
| length_mm | Yes | ||
| offset_mm | No | ||
| length_from | No | outer | |
| feature_name | No | ||
| inner_radius_mm | No |