fix failing undercut

fixes https://github.com/looooo/freecad.gears/issues/48
This commit is contained in:
lorenz
2020-06-04 10:42:39 +02:00
committed by GitHub
parent 1a35948243
commit a264bcacf6

View File

@@ -148,10 +148,10 @@ def nearestpts(evolv, underc):
for i in array(evolv[1:]):
jk = 0
for j in array(underc[1:]):
l = norm(i, j)
l = diff_norm(i, j)
if l < outmin:
re = norm(i, [0, 0])
ru = norm(j, [0, 0])
re = diff_norm(i, [0, 0])
ru = diff_norm(j, [0, 0])
if re > ru:
outmin = l
iout, jout = [ik, jk]