diff options
| author | Lex Neva <github.com@lexneva.name> | 2022-05-05 22:53:31 -0400 |
|---|---|---|
| committer | Lex Neva <github.com@lexneva.name> | 2022-05-05 22:53:31 -0400 |
| commit | a275d49a24dc91b734c6dbee1e29157bfd0d59d5 (patch) | |
| tree | f2b636427a5e0997c99775ca7643912d58534dcb /lib/stitches/auto_fill.py | |
| parent | ff0e28d3e552234f634867eaa613cdbb3b2e7c3c (diff) | |
tangential->contour, fix legacy, remove unused params
Diffstat (limited to 'lib/stitches/auto_fill.py')
| -rw-r--r-- | lib/stitches/auto_fill.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/stitches/auto_fill.py b/lib/stitches/auto_fill.py index 630178c4..b3b9434f 100644 --- a/lib/stitches/auto_fill.py +++ b/lib/stitches/auto_fill.py @@ -59,7 +59,8 @@ def auto_fill(shape, ending_point=None, underpath=True): try: - segments = intersect_region_with_grating(shape, angle, row_spacing, end_row_spacing) + rows = intersect_region_with_grating(shape, angle, row_spacing, end_row_spacing) + segments = [segment for row in rows for segment in row] fill_stitch_graph = build_fill_stitch_graph(shape, segments, starting_point, ending_point) except ValueError: # Small shapes will cause the graph to fail - min() arg is an empty sequence through insert node @@ -390,7 +391,8 @@ def process_travel_edges(graph, fill_stitch_graph, shape, travel_edges): def travel_grating(shape, angle, row_spacing): - segments = intersect_region_with_grating(shape, angle, row_spacing) + rows = intersect_region_with_grating(shape, angle, row_spacing) + segments = [segment for row in rows for segment in row] return shgeo.MultiLineString(list(segments)) |
