summaryrefslogtreecommitdiff
path: root/lib/elements/fill_stitch.py
diff options
context:
space:
mode:
authorKaalleen <reni@allenka.de>2025-03-20 18:49:38 +0100
committerKaalleen <reni@allenka.de>2025-03-20 18:49:38 +0100
commitde7d86e526faa64e79e7c5fb5a0606fbd4c3e42f (patch)
tree2a1f5e573551855e8c166638cb7bedececf3a303 /lib/elements/fill_stitch.py
parent9127a64ad54796731f384c7d9a65266f7b018738 (diff)
undo c2aeb39
Diffstat (limited to 'lib/elements/fill_stitch.py')
-rw-r--r--lib/elements/fill_stitch.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/elements/fill_stitch.py b/lib/elements/fill_stitch.py
index 923ce23f..5f33eb65 100644
--- a/lib/elements/fill_stitch.py
+++ b/lib/elements/fill_stitch.py
@@ -773,8 +773,6 @@ class FillStitch(EmbroideryElement):
paths = self.paths
paths.sort(key=lambda point_list: shgeo.Polygon(point_list).area, reverse=True)
shape = shgeo.MultiPolygon([(paths[0], paths[1:])])
- if self.node.style('fill-rule') == 'nonzero':
- shape = ensure_multi_polygon(shape.buffer(0))
return shape
@property
@@ -787,6 +785,7 @@ class FillStitch(EmbroideryElement):
return ensure_multi_polygon(set_precision(shape, 0.0000000001), 3)
shape = make_valid(shape)
+
return ensure_multi_polygon(set_precision(shape, 0.00000000001), 3)
def _get_clipped_path(self):