From 0db316ab0cbad59bd81be3d622af7cd71994424d Mon Sep 17 00:00:00 2001 From: sliptonic Date: Thu, 31 Dec 2020 13:57:51 -0600 Subject: [PATCH 1/2] fix bug with path gouging at start of movement --- src/Mod/Path/PathScripts/PathAdaptive.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Mod/Path/PathScripts/PathAdaptive.py b/src/Mod/Path/PathScripts/PathAdaptive.py index ff44082ca9..2d8ca3a4c0 100644 --- a/src/Mod/Path/PathScripts/PathAdaptive.py +++ b/src/Mod/Path/PathScripts/PathAdaptive.py @@ -174,6 +174,7 @@ def GenerateGCode(op,obj,adaptiveResults, helixDiameter): if obj.UseHelixArcs == False: # rapid move to start point + op.commandlist.append(Path.Command("G0", {"Z": obj.ClearanceHeight.Value})) op.commandlist.append(Path.Command("G0", {"X": helixStart[0], "Y": helixStart[1], "Z": obj.ClearanceHeight.Value})) # rapid move to safe height @@ -205,6 +206,7 @@ def GenerateGCode(op,obj,adaptiveResults, helixDiameter): helixStart = [region["HelixCenterPoint"][0] + r, region["HelixCenterPoint"][1]] # rapid move to start point + op.commandlist.append(Path.Command("G0", {"Z": obj.ClearanceHeight.Value})) op.commandlist.append(Path.Command("G0", {"X": helixStart[0], "Y": helixStart[1], "Z": obj.ClearanceHeight.Value})) # rapid move to safe height From 08b988b6918b2221b7b92aea96760f9292c16acf Mon Sep 17 00:00:00 2001 From: sliptonic Date: Fri, 1 Jan 2021 15:59:16 -0600 Subject: [PATCH 2/2] add fix in one more spot --- src/Mod/Path/PathScripts/PathAdaptive.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Mod/Path/PathScripts/PathAdaptive.py b/src/Mod/Path/PathScripts/PathAdaptive.py index 2d8ca3a4c0..162406cfb3 100644 --- a/src/Mod/Path/PathScripts/PathAdaptive.py +++ b/src/Mod/Path/PathScripts/PathAdaptive.py @@ -240,6 +240,7 @@ def GenerateGCode(op,obj,adaptiveResults, helixDiameter): else: # no helix entry # rapid move to clearance height + op.commandlist.append(Path.Command("G0", {"Z": obj.ClearanceHeight.Value})) op.commandlist.append(Path.Command("G0", {"X": region["StartPoint"][0], "Y": region["StartPoint"][1], "Z": obj.ClearanceHeight.Value})) # straight plunge to target depth op.commandlist.append(Path.Command("G1", {"X":region["StartPoint"][0], "Y": region["StartPoint"][1], "Z": passEndDepth,"F": op.vertFeed}))