summaryrefslogtreecommitdiff
path: root/lib/elements/fill_stitch.py
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2023-04-27 19:49:12 +0200
committerGitHub <noreply@github.com>2023-04-27 19:49:12 +0200
commitc00084e3a22920878879af5efbaad9b1f7cf66a4 (patch)
tree86da3b15e0880934705c5a67a50824012e107785 /lib/elements/fill_stitch.py
parent0d19853b1813e9989d1e4b0ff54a083e87660fca (diff)
fill: ensure size (#2240)
Diffstat (limited to 'lib/elements/fill_stitch.py')
-rw-r--r--lib/elements/fill_stitch.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/elements/fill_stitch.py b/lib/elements/fill_stitch.py
index df990652..b310ce47 100644
--- a/lib/elements/fill_stitch.py
+++ b/lib/elements/fill_stitch.py
@@ -531,7 +531,7 @@ class FillStitch(EmbroideryElement):
polygons = []
for polygon in valid_shape.geoms:
- if isinstance(polygon, shgeo.Polygon):
+ if isinstance(polygon, shgeo.Polygon) and polygon.area > 5:
polygons.append(polygon)
if isinstance(polygon, shgeo.MultiPolygon):
polygons.extend(polygon.geoms)