- added a new feature for Geometry export-as-SVG, the ability to export only the paths (outlines); the new feature is controlled from a new parameter in Preferences -> Geometry -> Export

This commit is contained in:
Marius Stanciu
2022-09-01 13:08:06 +03:00
committed by Marius
parent 6eeac5312e
commit 3c1349a6c4
5 changed files with 20 additions and 5 deletions

View File

@@ -2326,12 +2326,13 @@ class Geometry(object):
flat_geo = []
if self.multigeo:
for tool in self.tools:
flat_geo += self.flatten(self.tools[tool]['solid_geometry'])
flat_geo += self.flatten(self.tools[tool]['solid_geometry'],
pathonly=self.app.options["geometry_paths_only"])
geom_svg = unary_union(flat_geo)
else:
geom_svg = unary_union(self.flatten())
geom_svg = unary_union(self.flatten(pathonly=self.app.options["geometry_paths_only"]))
else:
geom_svg = unary_union(self.flatten())
geom_svg = unary_union(self.flatten(pathonly=self.app.options["geometry_paths_only"]))
xmin, ymin, xmax, ymax = geom_svg.bounds