- NCC Plugin: fixed the determination of optimal tool

- NCC Plugin: fixed a bug where when using the Rest Machining an error is issued due of trying to create a MultiPolygon having in the list another MultiPolygon; fixed by flattening the list
This commit is contained in:
Marius Stanciu
2023-07-01 10:40:49 +03:00
parent 1a637cdcb0
commit f00eb7b859
3 changed files with 24 additions and 12 deletions

View File

@@ -1507,7 +1507,7 @@ class Geometry(object):
# Optimization: Reduce lifts
if connect:
# log.debug("Reducing tool lifts...")
self.app.inform.emit(_("Connect: reducing tool lifts. This may take a while, please wait..."))
self.app.inform_no_echo.emit(_("Connect: reducing tool lifts. This may take a while, please wait..."))
self.app.proc_container.update_view_text(' %s' % _("Connecting..."), clear=True)
geoms = Geometry.paint_connect(geoms, polygon, tooldia, int(steps_per_circle))
@@ -1619,7 +1619,7 @@ class Geometry(object):
# Optimization: Reduce lifts
if connect:
# log.debug("Reducing tool lifts...")
self.app.inform.emit(_("Connect: reducing tool lifts. This may take a while, please wait..."))
self.app.inform_no_echo.emit(_("Connect: reducing tool lifts. This may take a while, please wait..."))
self.app.proc_container.update_view_text(' %s' % _("Connecting..."), clear=True)
geoms_conn = Geometry.paint_connect(geom_elems, polygon_to_clear, tooldia, steps_per_circle)
if geoms_conn:
@@ -1774,7 +1774,7 @@ class Geometry(object):
# Optimization: Reduce lifts
if connect:
# log.debug("Reducing tool lifts...")
self.app.inform.emit(_("Connect: reducing tool lifts. This may take a while, please wait..."))
self.app.inform_no_echo.emit(_("Connect: reducing tool lifts. This may take a while, please wait..."))
self.app.proc_container.update_view_text(' %s' % _("Connecting..."), clear=True)
geoms_conn = Geometry.paint_connect(geoms, polygon, tooldia, steps_per_circle)
if geoms_conn:
@@ -1965,7 +1965,7 @@ class Geometry(object):
# Optimization: Reduce lifts
if connect:
# log.debug("Reducing tool lifts...")
self.app.inform.emit(_("Connect: reducing tool lifts. This may take a while, please wait..."))
self.app.inform_no_echo.emit(_("Connect: reducing tool lifts. This may take a while, please wait..."))
self.app.proc_container.update_view_text(' %s' % _("Connecting..."), clear=True)
geoms_conn = Geometry.paint_connect(geoms, polygon, tooldia, steps_per_circle)
if geoms_conn: