From a264bcacf6381b8532d663dd1194428d5a601eb4 Mon Sep 17 00:00:00 2001 From: lorenz Date: Thu, 4 Jun 2020 10:42:39 +0200 Subject: [PATCH] fix failing undercut fixes https://github.com/looooo/freecad.gears/issues/48 --- pygears/_functions.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pygears/_functions.py b/pygears/_functions.py index 4580997..1281efe 100644 --- a/pygears/_functions.py +++ b/pygears/_functions.py @@ -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]