diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2022-06-21 19:59:26 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-21 19:59:26 +0200 |
| commit | 0fe1d3b426bd0d7d2394fcd7ee6fcabcc34b9260 (patch) | |
| tree | 677b3fafd65cca1ac9d64c73c761e9eb135b7fa7 /lib/marker.py | |
| parent | eef2ec232ef45fd608093e22d6103a317da8eab5 (diff) | |
Fill: make valid (#1697)
Diffstat (limited to 'lib/marker.py')
| -rw-r--r-- | lib/marker.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/marker.py b/lib/marker.py index 9d1a0dcd..5d4637fe 100644 --- a/lib/marker.py +++ b/lib/marker.py @@ -42,6 +42,7 @@ def set_marker(node, position, marker): def get_marker_elements(node, marker, get_fills=True, get_strokes=True, get_satins=False): from .elements import EmbroideryElement + from .elements.fill_stitch import FillStitch from .elements.satin_column import SatinColumn from .elements.stroke import Stroke @@ -61,10 +62,8 @@ def get_marker_elements(node, marker, get_fills=True, get_strokes=True, get_sati stroke = element.get_style('stroke') if get_fills and fill is not None: - fill = Stroke(marker).paths - linear_rings = [shgeo.LinearRing(path) for path in fill] - for ring in linear_rings: - fills.append(shgeo.Polygon(ring)) + fill = FillStitch(marker).shape + fills.append(fill) if get_strokes and stroke is not None: stroke = Stroke(marker).paths |
