mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-10-27 17:21:34 -04:00
The best-effort fallback (used whenever a part has touching or uncertain material boundaries, which sends the whole plate there) cut each part's holes in raw source order with the nearest entry. On hole grids that order doubles back, so the rapids between holes cross; any crossing means a shorter uncrossed order exists. On A0228-01 plate 1 this cost ~300 in of rapid travel and drew crossing rapids on PT08 in the simulator. Tour the holes with CuttingHoleOrder (the nearest-neighbour + 2-opt/Or-opt proposal the strict search already uses), as an open path from the arrival, perimeter still last. Hole-centre selection is shared with the strict search. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>