diff options
| author | Lex Neva <github.com@lexneva.name> | 2019-04-30 19:57:31 -0400 |
|---|---|---|
| committer | Lex Neva <github.com@lexneva.name> | 2019-04-30 19:57:31 -0400 |
| commit | 43a385ea0aaa591b62fdfda629d4299e4cadc15c (patch) | |
| tree | 448a4c323fa6af4658de50eb34f4b7ddb3281062 /lib/stitches/fill.py | |
| parent | b307b8e8247678a4bf128ded80a9bfd7b9b54c81 (diff) | |
| parent | 5b6923fe9d8d5f3afb0ef298ad34708e735fc5e5 (diff) | |
Merge branch 'master' into lexelby/lettering-features
Diffstat (limited to 'lib/stitches/fill.py')
| -rw-r--r-- | lib/stitches/fill.py | 4 |
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) |
