diff options
| author | Lex Neva <github.com@lexneva.name> | 2022-05-01 16:31:51 -0400 |
|---|---|---|
| committer | Kaalleen <reni@allenka.de> | 2022-05-04 19:18:33 +0200 |
| commit | e6fcf11035d3d953c2b07e6d153a1225f79cb781 (patch) | |
| tree | 24f51d070d49c62449dd7e580bdb59b58671daea /lib/stitches/guided_fill.py | |
| parent | fc3d05845a9e04a9dbe69e8ed6a025e3e77e6349 (diff) | |
fix some shapelydeprecations
Diffstat (limited to 'lib/stitches/guided_fill.py')
| -rw-r--r-- | lib/stitches/guided_fill.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/stitches/guided_fill.py b/lib/stitches/guided_fill.py index fb122fba..9170d66f 100644 --- a/lib/stitches/guided_fill.py +++ b/lib/stitches/guided_fill.py @@ -12,7 +12,7 @@ from .sample_linestring import raster_line_string_with_priority_points from ..debug import debug from ..i18n import _ from ..stitch_plan import Stitch -from ..utils.geometry import Point as InkstitchPoint +from ..utils.geometry import Point as InkstitchPoint, reverse_line_string @debug.time @@ -276,7 +276,7 @@ def intersect_region_with_grating_guideline(shape, line, row_spacing, flip=False line_offsetted = repair_non_simple_lines(line_offsetted) if row_spacing < 0: - line_offsetted.coords = line_offsetted.coords[::-1] + line_offsetted = reverse_line_string(line_offsetted) line_offsetted = line_offsetted.simplify(0.01, False) res = line_offsetted.intersection(shape) if row_spacing > 0 and not isinstance(res, (GeometryCollection, MultiLineString)): @@ -290,7 +290,7 @@ def intersect_region_with_grating_guideline(shape, line, row_spacing, flip=False if not line_offsetted.is_simple: line_offsetted = repair_non_simple_lines(line_offsetted) # using negative row spacing leads as a side effect to reversed offsetted lines - here we undo this - line_offsetted.coords = line_offsetted.coords[::-1] + line_offsetted = reverse_line_string(line_offsetted) line_offsetted = line_offsetted.simplify(0.01, False) res = line_offsetted.intersection(shape) return rows |
