penalize outline edges more

pull/409/head
Lex Neva 2019-03-24 14:57:47 -04:00
rodzic af6588a442
commit f6e6d099d2
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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 = []