diff options
| author | Lex Neva <github.com@lexneva.name> | 2020-02-15 16:45:53 -0500 |
|---|---|---|
| committer | Lex Neva <github.com@lexneva.name> | 2020-03-16 23:00:19 -0400 |
| commit | c81c11eb53c9e326812e6baa3390f5019be2abcd (patch) | |
| tree | 31336677089e21ce470aff50b1dcd6e3c6124a08 /lib/stitches | |
| parent | 9bb4686df702be6e930aa1216cc9e254ae9e5b01 (diff) | |
ensure starting point is on the border
Diffstat (limited to 'lib/stitches')
| -rw-r--r-- | lib/stitches/auto_fill.py | 3 |
1 files changed, 2 insertions, 1 deletions
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 = [] |
