From c81c11eb53c9e326812e6baa3390f5019be2abcd Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Sat, 15 Feb 2020 16:45:53 -0500 Subject: ensure starting point is on the border --- lib/stitches/auto_fill.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/stitches/auto_fill.py') diff --git a/lib/stitches/auto_fill.py b/lib/stitches/auto_fill.py index 771be6dd..b5f20afb 100644 --- a/lib/stitches/auto_fill.py +++ b/lib/stitches/auto_fill.py @@ -158,7 +158,8 @@ def build_fill_stitch_graph(shape, angle, row_spacing, end_row_spacing, starting def insert_node(graph, shape, node): """Add node to graph, splitting one of the outline edges""" - node = tuple(node) + + node = nearest_node(graph, tuple(node)) point = shgeo.Point(node) edges = [] -- cgit v1.2.3