From f3ccd77f91803e81d26f81d2ee66bb3cc281ea0f Mon Sep 17 00:00:00 2001 From: sundtek Date: Mon, 20 Dec 2021 01:15:59 +0800 Subject: [PATCH] Update PathAdaptive.py the internal unit is mm, only lowering the accuracy should be enough. --- src/Mod/Path/PathScripts/PathAdaptive.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/Mod/Path/PathScripts/PathAdaptive.py b/src/Mod/Path/PathScripts/PathAdaptive.py index f62d810553..42a6a9dbee 100644 --- a/src/Mod/Path/PathScripts/PathAdaptive.py +++ b/src/Mod/Path/PathScripts/PathAdaptive.py @@ -33,7 +33,6 @@ import json import math import area -from FreeCAD import Units from PySide import QtCore # lazily loaded modules @@ -105,13 +104,7 @@ def sceneClean(): def discretize(edge, flipDirection=False): - val=Units.Quantity("1mm").getUserPreferred() - if len(val)==3 and val[2]=='mm': - deflection=0.002 - else: - deflection=0.0001 - - pts = edge.discretize(Deflection=deflection) + pts = edge.discretize(Deflection=0.002) if flipDirection: pts.reverse()