lexelby/fill-clamp-and-smooth
Lex Neva 2023-05-31 20:49:20 -04:00 zatwierdzone przez Kaalleen
rodzic 6c5920f48e
commit 799b9a9131
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -634,6 +634,8 @@ def travel(shape, travel_graph, edge, running_stitch_length, running_stitch_tole
path = networkx.shortest_path(travel_graph, start, end, weight='weight')
if underpath and path != (start, end):
path = smooth_path(path, 2)
else:
path = [InkstitchPoint.from_tuple(point) for point in path]
path = clamp_path_to_polygon(path, shape)
points = running_stitch(path, running_stitch_length, running_stitch_tolerance)