Commit 871db41b authored by sumpfralle's avatar sumpfralle

fixed flawed fix from r161


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@163 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 5c6cf54c
...@@ -140,7 +140,7 @@ class DropCutter: ...@@ -140,7 +140,7 @@ class DropCutter:
if order is None: if order is None:
order = ["x", "y"] order = ["x", "y"]
p = Point(x.get(), y.get(), dim_height.get()) p = Point(x.get(), y.get(), dim_height.get())
height_max = -self._safe_height height_max = None
cut_max = None cut_max = None
triangle_max = None triangle_max = None
self.cutter.moveto(p) self.cutter.moveto(p)
...@@ -158,7 +158,6 @@ class DropCutter: ...@@ -158,7 +158,6 @@ class DropCutter:
height_max = cut.z height_max = cut.z
cut_max = cut cut_max = cut
triangle_max = t triangle_max = t
self._cut_last = cut
if not cut_max or not dim_height.check_bounds(cut_max.z): if not cut_max or not dim_height.check_bounds(cut_max.z):
cut_max = Point(x.get(), y.get(), dim_height.end) cut_max = Point(x.get(), y.get(), dim_height.end)
if self._cut_last and ((triangle_max and not self._triangle_last) or (self._triangle_last and not triangle_max)): if self._cut_last and ((triangle_max and not self._triangle_last) or (self._triangle_last and not triangle_max)):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment