- fixed a rare issue in the generation of non-copper-region geometry started from the Gerber Object UI (selected tab)

This commit is contained in:
Marius Stanciu
2019-12-20 01:12:02 +02:00
committed by Marius
parent 284d500073
commit f604cd461d
2 changed files with 7 additions and 0 deletions

View File

@@ -981,6 +981,9 @@ class FlatCAMGerber(FlatCAMObj, Gerber):
def geo_init(geo_obj, app_obj):
assert isinstance(geo_obj, FlatCAMGeometry)
if isinstance(self.solid_geometry, list):
self.solid_geometry = cascaded_union(self.solid_geometry)
bounding_box = self.solid_geometry.envelope.buffer(float(self.options["noncoppermargin"]))
if not self.options["noncopperrounded"]:
bounding_box = bounding_box.envelope