diff options
| author | Lex Neva <github.com@lexneva.name> | 2022-05-02 14:38:33 -0400 |
|---|---|---|
| committer | Kaalleen <reni@allenka.de> | 2022-05-04 19:18:33 +0200 |
| commit | bd8cb0d1ff2ce1f17ed8d3a5eaca19f8e8652ad0 (patch) | |
| tree | 960ddbd5328c1ee5a3be0fde72c84147d348ae2a /lib/stitches/fill.py | |
| parent | e6fcf11035d3d953c2b07e6d153a1225f79cb781 (diff) | |
use running_stitch instead for guided fill
Diffstat (limited to 'lib/stitches/fill.py')
| -rw-r--r-- | lib/stitches/fill.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/stitches/fill.py b/lib/stitches/fill.py index 1fdc6fac..a09b93b1 100644 --- a/lib/stitches/fill.py +++ b/lib/stitches/fill.py @@ -136,8 +136,6 @@ def intersect_region_with_grating(shape, angle, row_spacing, end_row_spacing=Non # fill regions at the same angle and spacing always line up nicely. start -= (start + normal * center) % row_spacing - rows = [] - current_row_y = start while current_row_y < end: @@ -165,7 +163,7 @@ def intersect_region_with_grating(shape, angle, row_spacing, end_row_spacing=Non runs.reverse() runs = [tuple(reversed(run)) for run in runs] - rows.append(runs) + yield from runs if end_row_spacing: current_row_y += row_spacing + \ @@ -174,8 +172,6 @@ def intersect_region_with_grating(shape, angle, row_spacing, end_row_spacing=Non else: current_row_y += row_spacing - return rows - def section_to_stitches(group_of_segments, angle, row_spacing, max_stitch_length, staggers, skip_last): stitches = [] |
