Files
OpenNest/OpenNest.Core/Geometry
ajandClaude Opus 5.5 1972aa17c5 fix(geometry): give tangent circles their tangent point, never NaN
Circle-circle intersection passed its containment test for internally
tangent circles while roundoff left r^2 - a^2 a hair below zero, so the
tangent point came back NaN. Material capture refused such parts as
"nonfinite program coordinates" and Plan Cutting fell back to a
best-effort plan: N26-2JJ's crescents (an inner arc tangent to the outer
one) failed whenever they were rotated 180 degrees, but only on the live
DWG geometry, since saving rounds the program and hides it.

Clamp r^2 - a^2 at zero. The externally tangent lead in
NativeContactRegressionTests is now refused on its contact rather than as
an incomplete check. The problem-nest corpus is identical to master.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 20:32:02 -05:00
..