Use correct startpoint.
This commit is contained in:
sliptonic
2022-02-15 09:47:39 -06:00
parent 8a92953f2a
commit 06bea999d4

View File

@@ -209,7 +209,9 @@ class ObjectDrilling(PathCircularHoleBase.ObjectOp):
# move to hole location
command = Path.Command("G0", {"X": hole["x"], "Y": hole["y"]})
startPoint = edge.Vertexes[0].Point
command = Path.Command("G0", {"X": startPoint.x, "Y": startPoint.y})
self.commandlist.append(command)
machine.addCommand(command)
@@ -217,9 +219,9 @@ class ObjectDrilling(PathCircularHoleBase.ObjectOp):
self.commandlist.append(command)
machine.addCommand(command)
command = Path.Command("G1", {"Z": obj.StartDepth.Value})
self.commandlist.append(command)
machine.addCommand(command)
# command = Path.Command("G1", {"Z": obj.StartDepth.Value})
# self.commandlist.append(command)
# machine.addCommand(command)
# Technical Debt: We are assuming the edges are aligned.
# This assumption should be corrected and the necessary rotations