mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-11-26 07:37:39 -05:00
feat(engine): add the Raster nesting engine
Raster packs each part rotation as a bit mask of its material grown by half the part spacing plus 0.75 cell, so masks that never share a cell keep the spacing and every layout passes the layout check unrepaired. Coarse raster no-fit maps propose positions and a grid four times finer settles them; the job is decoded in 48 greedy variants through the shared stock loop. It is selectable by name, not a Default candidate. Benchmark, 7 real jobs, --parallel 1, 6" minimum salvage: all layouts valid; Irregular's sheet count on 5 jobs in 0.6-2.3 s against 11-78 s, at under 1 to 4% more salvage-credited cost; 3 sheets against 2 on 27K; 24 s on 2J9 (seven stock sizes). Packing tighter and opening the gaps with Fix Spacing saved under 0.1% of cost for up to 25 times the time, so it was left out. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a73ddf2f4c
commit
ca9e08b93d
11 files changed
+999
-4
No files matched your search
@@ -22,7 +22,7 @@ try
|
||||
// Every built-in engine the desktop offers must instantiate from the packaged assembly.
|
||||
string[] expected =
|
||||
[
|
||||
"Default", "Rectangles", "Irregular", "Circles", "FlatBar",
|
||||
"Default", "Rectangles", "Irregular", "Circles", "Raster", "FlatBar",
|
||||
"Lattice", "Strip", "Vertical Remnant", "Horizontal Remnant",
|
||||
];
|
||||
foreach (var name in expected)
|
||||
|
||||
Reference in new issue
Block a user