Commit Graph
3 Commits
Author SHA1 Message Date
ajandClaude Opus 5.5 5fb52b1aaf refactor(cutoffs): split AutomaticCutOffPlanner.Create into planning phases
Move Create's state into a private Run class whose phases (measure the
parts, place the tail separator, choose and verify the horizontal
separator, bound the candidate count, place shifted or fixed strips, add
the tail and band, build the plan) Create calls in order. The former local
functions become methods with unchanged bodies; AddCandidate's detached
regeneration and definition bookkeeping move into two small helpers.
Expressions, predicates and the order of diagnostics are unchanged; the
characterization digests match.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 05:48:42 -05:00
ajandClaude Opus 5.5 cacfdcf5dc fix(cutoffs): keep automatic lines clear of nearby cut-offs
Automatic cut-offs matched existing cut-offs only on the exact same line,
so a grid line could land a hair beside a manual cut-off (or the planner's
own tail separator) and cut a sliver strip next to it. The planner now
keeps a cut clearance - the separator's part margin, the larger of part
spacing and cut-off part clearance - from every parallel cut-off:

- a full-span cut-off within it stands in for the proposed line (or the
  tail separator) and is certified at its own X;
- a shortened or gapped manual cut within it is a blocking conflict, as an
  exact same-line conflict already was, and the shift search avoids it;
- a strip line within it of a kept separator or full-span boundary is not
  cut, letting that strip run past the spacing by less than the clearance;
  the open sheet end keeps the bare tolerance, since oversize stock leaves
  its far edge unknown;
- a new horizontal separator beside an unhonored horizontal cut-off is not
  proposed.

With zero clearance and part spacing the guard falls back to the old
same-line tolerance.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 08:34:46 -05:00
ajandClaude Fable 5.2 bc0136e3f7 refactor(core): move cut-offs into OpenNest.CutOffs
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-12 19:42:45 -05:00