Fold & partial refold
SheetMetalFold(body=Unfold(...)) folds a flat pattern back up. With no
selection every bend is refolded, and you get the original part back.
Pass refold=[...] with the flange operations (SheetMetalEdgeFlange,
SheetMetalHem, …) whose bends should be folded again. All the other bends
stay flat. The three channels above are the folded part (blue), its flat
pattern (orange), and the flat pattern with only the front wall refolded
(green): the press-brake state after the first hit.
In a partial refold, each flat bend is the bend-allowance strip of the flat
pattern, and each refolded bend is its true inside-radius arc. Selecting bends
by kernel id (bend_ids=[...]) works too.