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

This commit is contained in:
Marius Stanciu 2020-07-29 17:18:02 +03:00
parent 445b4300f5
commit 593e6a80e5
2 changed files with 7 additions and 2 deletions

View File

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

View File

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