diff options
| author | Lex Neva <github.com@lexneva.name> | 2019-03-24 14:57:47 -0400 |
|---|---|---|
| committer | Lex Neva <github.com@lexneva.name> | 2019-03-24 14:57:47 -0400 |
| commit | f6e6d099d2ada30cda3ee2ece9a7cf93d8442040 (patch) | |
| tree | 89542daab24873b8a7ee41aa939d21b8bbad690c /lib | |
| parent | af6588a4426c0998fa51daf29d9b8f8f983bb0dd (diff) | |
penalize outline edges more
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/stitches/auto_fill.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 = [] |
