- fixed bug in CutOut Tool
This commit is contained in:
@@ -9,6 +9,10 @@ CAD program, and create G-Code for Isolation routing.
|
||||
|
||||
=================================================
|
||||
|
||||
5.07.2019
|
||||
|
||||
- fixed bug in CutOut Tool
|
||||
|
||||
1.07.2019
|
||||
|
||||
- Spanish translation at 36%
|
||||
|
||||
@@ -419,9 +419,13 @@ class CutOut(FlatCAMTool):
|
||||
except TypeError:
|
||||
object_geo = [object_geo]
|
||||
|
||||
for geo in object_geo:
|
||||
# for geo in object_geo:
|
||||
if isinstance(cutout_obj, FlatCAMGerber):
|
||||
geo = (geo.buffer(margin + abs(dia / 2))).exterior
|
||||
geo = (object_geo.buffer(margin + abs(dia / 2))).exterior
|
||||
else:
|
||||
geo = object_geo
|
||||
|
||||
geo = unary_union(geo)
|
||||
|
||||
# Get min and max data for each object as we just cut rectangles across X or Y
|
||||
xmin, ymin, xmax, ymax = recursive_bounds(geo)
|
||||
@@ -575,9 +579,9 @@ class CutOut(FlatCAMTool):
|
||||
except TypeError:
|
||||
object_geo = [object_geo]
|
||||
|
||||
for poly in object_geo:
|
||||
object_geo = unary_union(object_geo)
|
||||
|
||||
xmin, ymin, xmax, ymax = poly.bounds
|
||||
xmin, ymin, xmax, ymax = object_geo.bounds
|
||||
geo = box(xmin, ymin, xmax, ymax)
|
||||
|
||||
# if Gerber create a buffer at a distance
|
||||
|
||||
Reference in New Issue
Block a user