mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-11-22 12:17:43 -05:00
Lattice and the two Remnant strategies packed only items that were never filled, into one remnant, and dropped whatever a fill left of its own item. The fills see each earlier fill as one envelope, so a part's box can still fit between the parts of the finished layout, and the one remnant the pack tried is often a sliver that holds nothing. After the pack-first or pairs-first step and before the settle, every item with demand left is now offered to the remnants of the whole work area through LeftoverPacker, clamp keep-outs counted as occupied. The earlier steps are untouched, so a nest with nothing unplaced comes out as before. Three pinned nests gained parts and none lost one: mixed Fill 34 to 35, mixed Horizontal Remnant 30 to 35, learned-angle Horizontal Remnant 24 to 26. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>