Просмотр исходного кода

- fixed an exception that was raised in Geometry object when using an Offset

Marius Stanciu 5 лет назад
Родитель
Сommit
593e6a80e5
2 измененных файлов с 7 добавлено и 2 удалено
  1. 5 1
      CHANGELOG.md
  2. 2 1
      camlib.py

+ 5 - 1
CHANGELOG.md

@@ -7,7 +7,11 @@ CHANGELOG for FlatCAM beta
 
 =================================================
 
-27.06.2020
+29.07.2020
+
+- fixed an exception that was raised in Geometry object when using an Offset
+
+27.07.2020
 
 - Gerber parser - a single move with pen up D2 followed by a pen down D1 at the same location is now treated as a Flash; fixed issue #441
 

+ 2 - 1
camlib.py

@@ -5051,7 +5051,7 @@ class CNCjob(Geometry):
         # The Geometry from which we create GCode
         geometry = tools[tool]['solid_geometry']
         # ## Flatten the geometry. Only linear elements (no polygons) remain.
-        flat_geometry = self.flatten(geometry, pathonly=True)
+        flat_geometry = self.flatten(geometry, reset=True, pathonly=True)
         log.debug("%d paths" % len(flat_geometry))
 
         # #########################################################################################################
@@ -5098,6 +5098,7 @@ class CNCjob(Geometry):
                     if it.is_ring:
                         it = Polygon(it)
                 temp_solid_geometry.append(it.buffer(offset, join_style=2))
+            temp_solid_geometry = self.flatten(temp_solid_geometry, reset=True, pathonly=True)
         else:
             temp_solid_geometry = flat_geometry