Unfold
The Unfold node computes the flat pattern of a sheet-metal body — the
shape it would have if every bend were flattened. The assembly above shows the same
bracket twice: folded (left, blue) next to its unfolded flat pattern (right,
orange), so you can see each 90° bend trade for a flat bend-allowance strip.
Each bend contributes its neutral-fibre arc length:
(radius + k_factor * thickness) * angle. The result is itself a sheet-metal
body, with bend lines preserved as marked edges, ready to feed into a DXF
exporter.
Choose what stays put. By default the base flange stays where it is.
Pass fixed_face= a plane lying on any flange’s face to flatten around
that flange instead. Below, the bracket is flattened around its wall, so the
flat pattern stands upright in the wall’s plane:
Refold. SheetMetalFold(body=Unfold(body=part)) hands back the folded
body. Pass refold=[...] to fold only some bends back up; see
Fold & partial refold.
Lofted bends. A SheetMetalLoftedBend
transition (here a U-channel blending into a half-round) unfolds by
triangulation, the classic layout method for hoppers and transitions:
- both profiles are sampled at matching fractions of their length;
- the sheet between them is split into thin triangles;
- the triangles are laid flat edge to edge, each keeping its true side lengths.
The flat plate has the sheet’s true area:
DXF. Unfold and then SheetMetalToSolid give a flat body that the viewer’s
DXF button exports. Every flange outline and every cut-out (holes, slots,
corner reliefs, extruded-hole pre-forms) goes on the OUTLINE layer, and bend
lines go on BEND_UP / BEND_DOWN.