Files
OpenNest/OpenNest.Engine
aj 4259bd02f9 fix(planning): pull a later part ahead when taking back a swap
The free search learns order rules only between the parts a blocked
approach crossed. Where an uninvolved part is cut can decide the block:
the part cut before the crossed ones sets where the tool arrives from, and
so how they are entered and left. On a six-part plate of holed covers the
search swapped the crossed pair, learned rules under that swap, took it
back and then re-learned the same pair, running out of budget although
cutting the last part earlier plans Ready in under 300 expansions.

When a swap is taken back, each part still to be cut after the blocked one
is now tried in front of the earliest crossed part, nearest first, one
stall-bounded pass each, with the part before it planned again facing it.
That plate plans Ready again within its budget.
2026-11-26 13:07:08 -05:00
..