Commit 2879bfc1 authored by sumpfralle's avatar sumpfralle

a little bit more interactivity for the GUI during pocketing


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@888 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent c7b8920f
......@@ -281,6 +281,8 @@ def generate_toolpath(model, tool_settings=None,
# polygons. Sorry - the pocketing is currently very simple ...
base_filtered_polygons = []
for candidate in base_polygons:
if callback and callback():
return "Interrupted"
for other in other_polygons:
if candidate.is_polygon_inside(other):
break
......@@ -293,6 +295,8 @@ def generate_toolpath(model, tool_settings=None,
next_queue = []
pocket_depth = 0
while current_queue and (pocket_depth < pocketing_limit):
if callback and callback():
return "Interrupted"
for poly in current_queue:
result = poly.get_offset_polygons(pocketing_offset)
pocket_polygons.extend(result)
......
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