feat(auto-nest): offer the top layouts in the progress window with each sheet's free strip

The Auto Nest progress window lists up to three whole-job layouts as
cards, the engine's best first and then the best of each other family
(sheet count and free-strip direction). Every sheet shows the distance
from its parts to the right edge (vertical strips) or the top
(horizontal strips), dimensioned on the sheet. Any card can be used:
during the search it stops it, and a finished search with more than one
layout waits for the pick. The layout used is validated and bound like
the engine's own result.

Engines may report plans that lost to their best as
NestJobStage.PlanAlternative; Irregular, Default and the time-limited
solve do. Reporting never changes a layout.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
ajandClaude Fable 5.2 committed 2026-11-15 18:04:21 -05:00
1 parent bf734ea743
commit b96e0853b5
23 files changed
+1232 -62

No files matched your search

@@ -188,11 +188,16 @@ public sealed class DefaultNestingEngine : INestingEngine
Offer(plan);
}
/// <summary>Reports the plan when it beats every plan reported so far.</summary>
/// <summary>Reports the plan when it beats every plan reported so far; a valid plan that
/// does not is reported as an alternative.</summary>
public void Offer(CandidateScore plan)
{
if (shown != null && !plan.IsBetterThan(shown))
{
if (plan.Valid && !CandidateProgress.SameLayout(plan.Result, shown.Result))
CandidateProgress.ReportAlternative(plan.Result, inner);
return;
}
shown = plan;
CandidateProgress.ReportPlan(plan.Result, inner);
}