- added progress and possibility of graceful exit in Panel Tool

- added graceful exit possibility when creating Isolation
This commit is contained in:
Marius Stanciu
2019-09-10 15:08:42 +03:00
parent 5838bd0554
commit f658e05240
3 changed files with 186 additions and 21 deletions

View File

@@ -578,6 +578,9 @@ class Geometry(object):
# yet, it can be done by issuing an unary_union in the end, thus getting rid of the overlapping geo
try:
for pol in self.solid_geometry:
if self.app.abort_flag:
# graceful abort requested by the user
raise FlatCAMApp.GracefulException
if corner is None:
geo_iso.append(pol.buffer(offset, int(int(self.geo_steps_per_circle) / 4)))
else:
@@ -601,6 +604,7 @@ class Geometry(object):
self.app.proc_container.update_view_text(' %s' % _("Buffering"))
geo_iso = unary_union(geo_iso)
self.app.proc_container.update_view_text('')
# end of replaced block
if follow:
return geo_iso