From f6e6d099d2ada30cda3ee2ece9a7cf93d8442040 Mon Sep 17 00:00:00 2001 From: Lex Neva Date: Sun, 24 Mar 2019 14:57:47 -0400 Subject: penalize outline edges more --- lib/stitches/auto_fill.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/stitches/auto_fill.py b/lib/stitches/auto_fill.py index 39a924fe..9ccc93b2 100644 --- a/lib/stitches/auto_fill.py +++ b/lib/stitches/auto_fill.py @@ -238,9 +238,9 @@ def build_travel_graph(fill_stitch_graph, shape, fill_stitch_angle, underpath): p1 = InkstitchPoint(*start) p2 = InkstitchPoint(*end) - # Set the weight equal to 5x the edge length, to encourage travel() + # Set the weight equal to 10x the edge length, to encourage travel() # to avoid them when underpathing is enabled. - graph[start][end][key]["weight"] = 5 * p1.distance(p2) + graph[start][end][key]["weight"] = 10 * p1.distance(p2) if underpath: segments = [] -- cgit v1.2.3