mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-11-16 16:05:34 -05:00
fix(planning): rank hole entries by a clear way out to the next pierce
With no lead-out the tool leaves a hole where it entered it. A tiny corner arc's midpoint lies on both facing sides of its hole, so the ranker scored it as an ideal two-side corner, but the tool leaves it along its 45-degree tangent: a shallow rapid to a nearby next hole re-entered the corner and crossed the hole just cut. Every outside endpoint's preferred hole chain then failed the same way, and the reorder search spent its budget on full backtracking. A 31-part plate of such parts needed 31,959 expansions against a default budget of 20,000. Hole entries whose straight rapid to the next pierce clears the hole itself now rank first, in the preferred chain and in the full search. This is a stable reorder only: no entry is dropped, and every emitted rapid is still checked. That plate now plans Ready on its first preferred pass, using 7,781 expansions; the budget is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b9c5240a43
commit
40e4e559dd
5 files changed
+177
-1
No files matched your search
@@ -320,6 +320,16 @@ pierce, ignoring scribe marks: each hole faces the following contour's actual pi
|
||||
Convex corners lead the preference tiers, then straight midpoints/tangent joints,
|
||||
then native fallbacks. Reflex/cusp corners remain manual-only.
|
||||
|
||||
A hole is left where it was entered too, so ahead of those tiers its entries are ordered
|
||||
by whether the straight rapid from the entry to the following contour's pierce clears the
|
||||
hole itself. Without this, the midpoint of a tiny corner arc (it lies on both facing sides
|
||||
of the hole, so it ranks as an ideal corner) is left along its 45° tangent, and a shallow
|
||||
rapid to a nearby next hole re-enters the corner and crosses the hole just cut; every
|
||||
outside endpoint's preferred chain then fails the same way. The full search orders its
|
||||
hole entries the same way toward its route's next pierce. This is a stable reordering
|
||||
measured from the nominal entry, which is the departure when there is no lead-out; no
|
||||
entry is dropped and every emitted rapid is still checked.
|
||||
|
||||
This preference orders the search; it never certifies a rapid or prunes alternate
|
||||
retained entries or hole orders. A different outside endpoint recomputes its hole
|
||||
preference. Every standalone emitted prefix is replayed from the original part
|
||||
|
||||
Reference in new issue
Block a user