sheet_refold
Fold a flat pattern back up and verify it reproduces the original part, exposing wrong allowances, angles, or bend directions by reporting disagreement in volume and bounding box.
Instructions
Fold a flat pattern back up and check it reproduces the part — the other half of the unfold gate.
This does NOT replay the feature model. It reads the flat pattern back: each leg length is measured off the flat outline, walking outward from the bend's attachment past its reported bend allowance to the far edge of that region. So a wrong allowance, angle or bend direction lands the refolded solid somewhere the original is not, and this reports the disagreement instead of hiding it.
handle: a sheet part to unfold and then refold.
flat: alternatively a sheet_unfold report, to refold a development produced
elsewhere (or a deliberately corrupted one, to prove the check bites).
compare: the handle to check against; defaults to handle, and is skipped when
only flat is given.
volume_tol_pct / bbox_tol_mm: agreement tolerances.
Note the round trip that is meaningful and the one that is not: refold-vs-folded must match, but flat-vs-folded VOLUME must not, and does not. Bending preserves neutral-fibre length, not material volume — a bend sector's true volume is angle·t·(R + t/2)·w while its flat footprint is angle·(R + K·t)·t·w, and those agree only at K = 0.5.
Returns {handle, name, volume_mm3, bbox, bends, compare?} where compare is {handle, matches, volume_mm3, volume_error_pct, bbox_max_error_mm, tolerance}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flat | No | ||
| name | No | SheetRefold | |
| handle | No | ||
| compare | No | ||
| k_factor | No | ||
| bend_table | No | ||
| bbox_tol_mm | No | ||
| volume_tol_pct | No |