mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-11-20 20:27:42 -05:00
The frontier rule lets the sheet state pick the next part and sends small parts first, so a part as long as the layout can end up behind them and set the sheet's length. On N26-2CJ (two 55" plates, rings, sectors, an arc and strips on 48 x 96) Auto Nest ended at 75.2" where the hand layout, both plates stacked along one edge, ends at 63.5". After the search, pack the last sheet's parts again in a given order, largest first, each at the lowest point across a strip that ends short of where they reach now, and search the order (single-part moves, then seeded swaps) for one that fits them all. Each strip that takes them is followed by a shorter one. Parts that may turn freely are also offered every 30 degrees. Work is counted, the seed is fixed, and the squeezed sheet replaces the plan's only when the plan then ranks better. N26-2CJ now ends at 62.1", leaving 33.4 x 47.5 against 20.3 x 47.5. A search over few parts runs out of new orders, and decodes it has already made cost no work, so it also ends after a run of rounds that place nothing new, and its per-strip budget shrinks with the part count. CurvedPartsClearEveryInflatedClampInEveryQuadrant asked for a disc on the sheet edge between the clamps. The squeezed sheet is 0.1" shorter with that disc wedged on a clamp's corner, so the test now asks for a disc below the clamps' tops. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>