From 799b9a9131185bae3cb392bd0603e903498074dc Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Wed, 31 May 2023 20:49:20 -0400 Subject: ensure Points --- lib/stitches/auto_fill.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/stitches/auto_fill.py') diff --git a/lib/stitches/auto_fill.py b/lib/stitches/auto_fill.py index 5e886fae..50eea18e 100644 --- a/lib/stitches/auto_fill.py +++ b/lib/stitches/auto_fill.py @@ -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) -- cgit v1.2.3