- fixed an issue in the remade Cutout Tool where when applied on a single Gerber object, the Freeform Cutout produced no cutout Geometry object

This commit is contained in:
Marius Stanciu
2019-05-17 20:11:01 +03:00
parent 3713a5d78f
commit 7f0a1695ef
2 changed files with 9 additions and 1 deletions

View File

@@ -13,6 +13,7 @@ CAD program, and create G-Code for Isolation routing.
- remade the Tool Cutout to work on panels
- remade the Tool Cutour such that on multiple applications on the same object it will yield the same result
- fixed an issue in the remade Cutout Tool where when applied on a single Gerber object, the Freeform Cutout produced no cutout Geometry object
16.05.2019

View File

@@ -562,8 +562,15 @@ class CutOut(FlatCAMTool):
def geo_init(geo_obj, app_obj):
solid_geo = []
object_geo = cutout_obj.solid_geometry
try:
_ = iter(object_geo)
except TypeError:
object_geo = [object_geo]
for poly in object_geo:
for poly in cutout_obj.solid_geometry:
xmin, ymin, xmax, ymax = poly.bounds
geo = box(xmin, ymin, xmax, ymax)