- fixed an erroneous opening for a Gerber file generated by KiCAD 6.0.11, due of a rectangular flash being eliminated by the global unary_union operation

This commit is contained in:
Marius Stanciu
2023-05-05 02:40:41 +03:00
parent 765d7cc05b
commit 412872bc09
2 changed files with 6 additions and 2 deletions

View File

@@ -7,6 +7,10 @@ CHANGELOG for FlatCAM Evo beta
================================================= =================================================
05.05.2023
- fixed an erroneous opening for a Gerber file generated by KiCAD 6.0.11, due of a rectangular flash being eliminated by the global unary_union operation
15.04.2023 15.04.2023
- changed the shapely imports a bit according to the specifications of Shapely 2.0 - changed the shapely imports a bit according to the specifications of Shapely 2.0

View File

@@ -681,7 +681,7 @@ class Gerber(Geometry):
# ################################################################ # ################################################################
if current_macro is None: # No macro started yet if current_macro is None: # No macro started yet
match = self.am1_re.search(gline) match = self.am1_re.search(gline)
# Start macro if match, else not an AM, carry on. # Start macro if there is a match, else not an AM, carry on.
if match: if match:
self.app.log.debug("Starting macro. Line %d: %s" % (line_num, gline)) self.app.log.debug("Starting macro. Line %d: %s" % (line_num, gline))
current_macro = match.group(1) current_macro = match.group(1)
@@ -1806,7 +1806,7 @@ class Gerber(Geometry):
maxx = loc[0] + width / 2 maxx = loc[0] + width / 2
miny = loc[1] - height / 2 miny = loc[1] - height / 2
maxy = loc[1] + height / 2 maxy = loc[1] + height / 2
return shply_box(minx, miny, maxx, maxy) return shply_box(minx, miny, maxx, maxy).buffer(0.0000001)
if aperture['type'] == 'O': # Obround if aperture['type'] == 'O': # Obround
loc = location.coords[0] loc = location.coords[0]