- Punch Gerber Plugin: fixed issues with iterating ovr a MultiPolygon

- GerberObject: fixed Gerber merging functionality
This commit is contained in:
Marius Stanciu
2024-02-20 03:20:21 +02:00
parent 45bd564a78
commit e39dbeb5a1
4 changed files with 12 additions and 5 deletions

View File

@@ -1720,8 +1720,8 @@ class GerberObject(FlatCAMObj, Gerber):
for k, v in grb.tools[ap].items():
grb_final.tools[max_ap][k] = deepcopy(v)
grb_final.solid_geometry = MultiPolygon(grb_final.solid_geometry)
grb_final.follow_geometry = MultiPolygon(grb_final.follow_geometry)
grb_final.solid_geometry = unary_union(flatten_shapely_geometry(grb_final.solid_geometry))
grb_final.follow_geometry = unary_union(flatten_shapely_geometry(grb_final.follow_geometry))
def mirror(self, axis, point):
Gerber.mirror(self, axis=axis, point=point)