summaryrefslogtreecommitdiff
path: root/lib/stitches/auto_fill.py
diff options
context:
space:
mode:
authorLex Neva <github.com@lexneva.name>2022-05-03 16:58:55 -0400
committerKaalleen <reni@allenka.de>2022-05-04 19:18:33 +0200
commitaeeaf72338e2d7645309725be641d552a3c56190 (patch)
tree2d28e60d4c3f6f80ad98df506c92358074124448 /lib/stitches/auto_fill.py
parent5a69fa3e9c582a3bc21660342cea35837ae1eb9a (diff)
wip
Diffstat (limited to 'lib/stitches/auto_fill.py')
-rw-r--r--lib/stitches/auto_fill.py12
1 files changed, 1 insertions, 11 deletions
diff --git a/lib/stitches/auto_fill.py b/lib/stitches/auto_fill.py
index 35412e93..630178c4 100644
--- a/lib/stitches/auto_fill.py
+++ b/lib/stitches/auto_fill.py
@@ -16,8 +16,7 @@ from shapely.strtree import STRtree
from ..debug import debug
from ..stitch_plan import Stitch
from ..svg import PIXELS_PER_MM
-from ..utils.geometry import Point as InkstitchPoint
-from ..utils.geometry import line_string_to_point_list
+from ..utils.geometry import Point as InkstitchPoint, line_string_to_point_list, ensure_multi_line_string
from .fill import intersect_region_with_grating, stitch_row
from .running_stitch import running_stitch
@@ -396,15 +395,6 @@ def travel_grating(shape, angle, row_spacing):
return shgeo.MultiLineString(list(segments))
-def ensure_multi_line_string(thing):
- """Given either a MultiLineString or a single LineString, return a MultiLineString"""
-
- if isinstance(thing, shgeo.LineString):
- return shgeo.MultiLineString([thing])
- else:
- return thing
-
-
def build_travel_edges(shape, fill_angle):
r"""Given a graph, compute the interior travel edges.