add first stitch

pull/409/head
Lex Neva 2019-03-20 20:46:26 -04:00
rodzic 4c1f1bc2bb
commit 1e5733bbcd
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -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)