feat: add VerticalRemnantEngine and HorizontalRemnantEngine

Two new engine classes subclassing DefaultNestEngine that override
CreateComparer, PreferredDirection, and BuildAngles to optimize for
preserving side remnants. Both registered in NestEngineRegistry and
covered by 6 integration tests.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-21 12:57:33 -04:00
parent 83124eb38d
commit 0b7697e9c0
4 changed files with 184 additions and 0 deletions

View File

@@ -24,6 +24,14 @@ namespace OpenNest
Register("NFP",
"NFP-based mixed-part nesting with simulated annealing",
plate => new NfpNestEngine(plate));
Register("Vertical Remnant",
"Optimizes for largest right-side vertical drop",
plate => new VerticalRemnantEngine(plate));
Register("Horizontal Remnant",
"Optimizes for largest top-side horizontal drop",
plate => new HorizontalRemnantEngine(plate));
}
public static IReadOnlyList<NestEngineInfo> AvailableEngines => engines;