mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-11-27 12:41:35 -05:00
feat(engine): run Raster as a Default candidate
Default now runs Rectangles, Raster, Circles, then Irregular, so a stopped or time-limited search holds an irregular plan within seconds. Ranking is unchanged; Raster is last in tie-break order and wins only with a strictly better score. The cutout pipeline tests keep their "ordinary solve cannot fit the insert" precondition for Irregular only, since Raster nests in holes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
dfee19d24b
commit
4280d568b4
10 files changed
+40
-29
No files matched your search
@@ -39,11 +39,11 @@ public class DefaultNestingEngineTests
|
||||
[Fact]
|
||||
public void BuiltInDefaultRunsIrregularLast()
|
||||
{
|
||||
// Rectangles is the cheap, always-valid fallback: under a limit it must have reported
|
||||
// its plan before the slower Irregular search starts, and Irregular, which may search
|
||||
// until cancelled, must not keep Circles from running. Candidates stay in tie-break
|
||||
// order Irregular, Rectangles, Circles.
|
||||
Assert.Equal(new[] { 1, 2, 0 }, new DefaultNestingEngine().RunOrder);
|
||||
// Rectangles is the cheap, always-valid fallback and Raster the fast irregular plan:
|
||||
// under a limit both must have reported before the slower Irregular search starts, and
|
||||
// Irregular, which may search until cancelled, must not keep the others from running.
|
||||
// Candidates stay in tie-break order Irregular, Rectangles, Circles, Raster.
|
||||
Assert.Equal(new[] { 1, 3, 2, 0 }, new DefaultNestingEngine().RunOrder);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
Reference in new issue
Block a user