diff --git a/src/Mod/Path/PathScripts/PathAdaptive.py b/src/Mod/Path/PathScripts/PathAdaptive.py index 8368a38892..f62d810553 100644 --- a/src/Mod/Path/PathScripts/PathAdaptive.py +++ b/src/Mod/Path/PathScripts/PathAdaptive.py @@ -33,6 +33,7 @@ import json import math import area +from FreeCAD import Units from PySide import QtCore # lazily loaded modules @@ -104,7 +105,13 @@ def sceneClean(): def discretize(edge, flipDirection=False): - pts = edge.discretize(Deflection=0.0001) + 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) if flipDirection: pts.reverse()