FAILURE MAP
← Case archive

FA-97563 / Knitting and sewing pattern grading / Member archive

Seam and hem allowance cutter: unfolded fabric area · case 03

Fold pieces consume half the fabric in the estimate.

Member previewVariant 3 · 3 implementations · 8 checks per implementation

Case contract

Pieces [name, finished_w, finished_h, on_fold, hemmed]. Cut width = w/2 + sa when cut on the fold (no allowance on the fold), else w + 2*sa. Cut height = h + sa (top) + (hem if hemmed else sa). Fabric area counts the unfolded piece (2*cut width for fold pieces) * cut height, summed and half-up to cm^2. A non-positive finished dimension -> "error: piece". Return [[name, cut_w, cut_h] floats, area].

Why this case matters

Pattern drafting software adds seam and hem allowances and handles place-on-fold pieces.

One recorded failure

Sample boundary fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
fold piece[[["front", 22.5, 58.0]], 1305][[["front", 22.5, 58.0]], 2610]Failed

MEMBER ARCHIVE

The complete case is available to members.

This record includes three runnable implementations, regression fixtures, execution results, and source hashes.

Member access is invitation-based. Sign in with your invited account to inspect the sources.

Sign in to the archive ↗