- 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:
@@ -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
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user