summaryrefslogtreecommitdiff
path: root/lib/stitches
diff options
context:
space:
mode:
Diffstat (limited to 'lib/stitches')
-rw-r--r--lib/stitches/meander_fill.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/stitches/meander_fill.py b/lib/stitches/meander_fill.py
index cb6e3f4e..81efa398 100644
--- a/lib/stitches/meander_fill.py
+++ b/lib/stitches/meander_fill.py
@@ -20,6 +20,7 @@ def meander_fill(fill, shape, shape_index, starting_point, ending_point):
debug.log(f"tile name: {tile.name}")
+ # from ..utils.geometry import ensure_geometry_collection
# debug.log_line_strings(ensure_geometry_collection(shape.boundary).geoms, 'Meander shape')
graph = tile.to_graph(shape, fill.meander_scale, fill.meander_padding)
# debug.log_graph(graph, 'Meander graph')
@@ -67,6 +68,8 @@ def find_initial_path(graph, start, end):
# nx.all_simple_paths(graph, start, end) and choose the first one.
# However, that tends to pick a really "orderly" path. Shortest
# path looks more random.
+
+ # TODO: handle if this can't find a path
return nx.shortest_path(graph, start, end)