fill: ensure size (#2240)

pull/2248/head
Kaalleen 2023-04-27 19:49:12 +02:00 zatwierdzone przez GitHub
rodzic 0d19853b18
commit c00084e3a2
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -531,7 +531,7 @@ class FillStitch(EmbroideryElement):
polygons = [] polygons = []
for polygon in valid_shape.geoms: for polygon in valid_shape.geoms:
if isinstance(polygon, shgeo.Polygon): if isinstance(polygon, shgeo.Polygon) and polygon.area > 5:
polygons.append(polygon) polygons.append(polygon)
if isinstance(polygon, shgeo.MultiPolygon): if isinstance(polygon, shgeo.MultiPolygon):
polygons.extend(polygon.geoms) polygons.extend(polygon.geoms)