Skip to content

Commit

Permalink
Fixed Block.pathMargins() to correctly take A axis
Browse files Browse the repository at this point in the history
  • Loading branch information
dguerizec committed Jun 15, 2017
1 parent 45e7ae8 commit 6c1c8ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CNC.py
Original file line number Diff line number Diff line change
Expand Up @@ -2206,11 +2206,11 @@ def pathMargins(self, xyza):
self.xmin = min(self.xmin, min([i[0] for i in xyza]))
self.ymin = min(self.ymin, min([i[1] for i in xyza]))
self.zmin = min(self.zmin, min([i[2] for i in xyza]))
self.amin = min(self.amin, min([i[3] for i in xyza]))
self.xmax = max(self.xmax, max([i[0] for i in xyza]))
self.ymax = max(self.ymax, max([i[1] for i in xyza]))
self.zmax = max(self.zmax, max([i[2] for i in xyza]))
self.amax = max(self.amax, max([i[3] for i in xyza]))
self.amin = min(self.amin, min([0.] + [i[3] for i in xyza if len(i) > 3]))
self.amax = max(self.amax, max([0.] + [i[3] for i in xyza if len(i) > 3]))

#===============================================================================
# Gcode file
Expand Down

0 comments on commit 6c1c8ad

Please sign in to comment.