Sheet Refold
sheet_refoldRefold a sheet-metal flat pattern and compare the resulting solid to the original part within volume and bounding-box tolerances to catch incorrect bend allowances, angles, or directions.
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}.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "sheet_refold"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flat | No | ||
| name | No | SheetRefold | |
| handle | No | ||
| compare | No | ||
| k_factor | No | ||
| workspace | No | Run this call in this named workspace | |
| bend_table | No | ||
| bbox_tol_mm | No | ||
| volume_tol_pct | No |