- fixed a bug in the bounding box generation

This commit is contained in:
Marius Stanciu
2020-01-22 01:08:35 +02:00
committed by Marius
parent 6a616168e1
commit 11d4dd633f
2 changed files with 8 additions and 0 deletions

View File

@@ -1022,6 +1022,10 @@ 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 = MultiPolygon(self.solid_geometry)
# Bounding box with rounded corners
bounding_box = self.solid_geometry.envelope.buffer(float(self.options["bboxmargin"]))
if not self.options["bboxrounded"]: # Remove rounded corners