diff options
| author | Lex Neva <github.com@lexneva.name> | 2019-03-20 20:46:26 -0400 |
|---|---|---|
| committer | Lex Neva <github.com@lexneva.name> | 2019-03-20 20:46:26 -0400 |
| commit | 1e5733bbcdb000b27a0569b2b838cc0c04ffb461 (patch) | |
| tree | fd60f4db64573cb8b592c7b5ceeeea75b8f8ac58 /lib/stitches | |
| parent | 4c1f1bc2bbf9277e399dc8ddbed5c0d81d930a34 (diff) | |
add first stitch
Diffstat (limited to 'lib/stitches')
| -rw-r--r-- | lib/stitches/auto_fill.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/stitches/auto_fill.py b/lib/stitches/auto_fill.py index 2414e937..8ad9fa16 100644 --- a/lib/stitches/auto_fill.py +++ b/lib/stitches/auto_fill.py @@ -442,6 +442,10 @@ def path_to_stitches(path, travel_graph, fill_stitch_graph, angle, row_spacing, stitches = [] + # If the very first stitch is travel, we'll omit it in travel(), so add it here. + if not path[0].is_segment(): + stitches.append(InkstitchPoint(*path[0].nodes[0])) + for edge in path: if edge.is_segment(): stitch_row(stitches, edge[0], edge[1], angle, row_spacing, max_stitch_length, staggers, skip_last) |
