Commit 737be2a4 authored by lode_leroy's avatar lode_leroy

fixes by Dan Falck

git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@43 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 2e92f0b1
...@@ -83,6 +83,7 @@ class DropCutter: ...@@ -83,6 +83,7 @@ class DropCutter:
z_max = -INFINITE z_max = -INFINITE
cl_max = None cl_max = None
t_max = None t_max = None
cl_last = None
self.cutter.moveto(p) self.cutter.moveto(p)
for t in self.model.triangles(): for t in self.model.triangles():
if t.normal().z < 0: continue; if t.normal().z < 0: continue;
...@@ -93,9 +94,7 @@ class DropCutter: ...@@ -93,9 +94,7 @@ class DropCutter:
t_max = t t_max = t
if not cl_max or cl_max.z<z0: if not cl_max or cl_max.z<z0:
cl_max = Point(x,y,z0) cl_max = Point(x,y,z0)
if cl_last and ((t_max and not t_last) or (t_last and not t_max)):
if (t_max and not t_last) or (t_last and not t_max):
if cl_last.z < z_max: if cl_last.z < z_max:
pa.append(Point(cl_last.x,cl_last.y,cl_max.z)) pa.append(Point(cl_last.x,cl_last.y,cl_max.z))
else: else:
......
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