- hopefully this will solve the conflict
This commit is contained in:
@@ -511,15 +511,14 @@ class FlatCAMGerber(FlatCAMObj, Gerber):
|
|||||||
# to cut on the right side of the left over copper i.e on the left side of the features.
|
# to cut on the right side of the left over copper i.e on the left side of the features.
|
||||||
geom = self.isolation_geometry(offset)
|
geom = self.isolation_geometry(offset)
|
||||||
if invert:
|
if invert:
|
||||||
try:
|
if type(geom) is MultiPolygon:
|
||||||
if type(geom) is MultiPolygon:
|
pl = []
|
||||||
pl = []
|
for p in geom:
|
||||||
for p in geom:
|
pl.append(Polygon(p.exterior.coords[::-1], p.interiors))
|
||||||
pl.append(Polygon(p.exterior.coords[::-1], p.interiors))
|
geom = MultiPolygon(pl)
|
||||||
geom = MultiPolygon(pl)
|
elif type(geom) is Polygon:
|
||||||
elif type(geom) is Polygon:
|
geom = Polygon(geom.exterior.coords[::-1], geom.interiors)
|
||||||
geom = Polygon(geom.exterior.coords[::-1], geom.interiors)
|
else:
|
||||||
except Exception as e:
|
|
||||||
str("Unexpected Geometry")
|
str("Unexpected Geometry")
|
||||||
return geom
|
return geom
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user