summaryrefslogtreecommitdiff
path: root/lib/stitches/fill.py
diff options
context:
space:
mode:
authorLex Neva <lexelby@users.noreply.github.com>2019-04-10 00:10:51 -0400
committerGitHub <noreply@github.com>2019-04-10 00:10:51 -0400
commit08e8a885ea4db0837660232198881bd8d6654add (patch)
treed7344e7bb1344848d2c60735dc97078a5d95bb71 /lib/stitches/fill.py
parentd87750b8b01ec8aba52ed653ab151930d5d84a9f (diff)
parent2c39fbc8cf0ec626c945cbc4bd631c3372431821 (diff)
Merge pull request #409 from inkstitch/lexelby/revamp-fill
revamp auto-fill algorithm
Diffstat (limited to 'lib/stitches/fill.py')
-rw-r--r--lib/stitches/fill.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/stitches/fill.py b/lib/stitches/fill.py
index e00d66de..924f64f6 100644
--- a/lib/stitches/fill.py
+++ b/lib/stitches/fill.py
@@ -140,7 +140,7 @@ def intersect_region_with_grating(shape, angle, row_spacing, end_row_spacing=Non
res = grating_line.intersection(shape)
if (isinstance(res, shapely.geometry.MultiLineString)):
- runs = map(lambda line_string: line_string.coords, res.geoms)
+ runs = [line_string.coords for line_string in res.geoms]
else:
if res.is_empty or len(res.coords) == 1:
# ignore if we intersected at a single point or no points
@@ -153,7 +153,7 @@ def intersect_region_with_grating(shape, angle, row_spacing, end_row_spacing=Non
if flip:
runs.reverse()
- runs = map(lambda run: tuple(reversed(run)), runs)
+ runs = [tuple(reversed(run)) for run in runs]
rows.append(runs)