فهرست منبع

- fixed a bug in the bounding box generation

Marius Stanciu 6 سال پیش
والد
کامیت
11d4dd633f
2فایلهای تغییر یافته به همراه8 افزوده شده و 0 حذف شده
  1. 4 0
      FlatCAMObj.py
  2. 4 0
      README.md

+ 4 - 0
FlatCAMObj.py

@@ -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

+ 4 - 0
README.md

@@ -9,6 +9,10 @@ CAD program, and create G-Code for Isolation routing.
 
 =================================================
 
+22.01.2020
+
+- fixed a bug in the bounding box generation
+
 19.01.2020
 
 - fixed some bugs that are visible in Linux regarding the ArgsThread class: on app close we need to quit the QThread running the ArgsThread class and also close the opened Socket