mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-11-23 06:37:52 -05:00
fix(cutting): plan outlines with a seam gap before an arc, and memoize lead checks
A converted outline whose seam closes within the admitted 1e-6 gap could only be entered at its seam: entered anywhere else, the arc after the seam started off its own circle and every emission was refused as an inconsistent radius. The search then spent its whole budget on that part and the plate never planned. Emission now bridges the gap with a straight move and cuts the arc as drawn; the verifier already admits that slack. An entry on the seam vertex is left as before. Each prefix of a part re-checked its earlier contours' leads against every other part's material. One search now remembers each verdict by the lead curve's exact bits and the material's reference, charging the same native query budget; replay never uses it. On the reported plate the memo alone gives a byte-identical result in 57 s instead of 12 min 47 s; with the seam fix the plate plans Ready in about 17 s. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d317a90f1e
commit
fb505ef0ff
9 files changed
+179
-7
No files matched your search
@@ -66,7 +66,11 @@ inside both spans. Lead and rapid checks keep their conservative contact queries
|
||||
Source contour closure
|
||||
in material capture and emitter preparation accepts endpoint gaps up to 0.000001
|
||||
model units (inches for an inch nest), with a floating-point roundoff allowance
|
||||
capped at 1e-12. It does not rewrite source endpoints. Native intersections,
|
||||
capped at 1e-12. It does not rewrite source endpoints. A contour entered away from its
|
||||
seam crosses that gap mid-cut; when an arc follows it, emission bridges the gap with a
|
||||
straight move and cuts the arc as drawn, rather than starting the arc off its own circle
|
||||
(which every check refuses as an inconsistent radius). An entry on the seam vertex has no
|
||||
such bridge, since a lead-in must join the contour itself. Native intersections,
|
||||
executed-motion checks and pre-post verification retain their existing tolerances.
|
||||
|
||||
Arcs of one circle whose centres were each derived from their own endpoints agree only
|
||||
@@ -214,7 +218,9 @@ rapid, ten times the widest band any native contact query allows beyond an
|
||||
extent; anything closer, touching included, gets the full native check. Lead
|
||||
checks examine every other part's material: native line/circle queries can report
|
||||
rounding contacts for long leads far from small circles, and leads keep those
|
||||
results. An arc's
|
||||
results. Every prefix of a part repeats its earlier contours' leads, so one search
|
||||
remembers each other-material verdict by the lead curve's exact bits and the material's
|
||||
reference, and charges the native query budget the scan ran; replay never uses it. An arc's
|
||||
extent is its whole supporting circle widened to the distance at which the native
|
||||
contact query still counts it as touched (for a very small arc up to 0.0001 beyond
|
||||
its radius). Nothing is skipped when either extent has a nonfinite bound or reaches
|
||||
|
||||
Reference in new issue
Block a user