summaryrefslogtreecommitdiff
path: root/lib/stitches/guided_fill.py
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2023-10-15 07:08:36 +0200
committerGitHub <noreply@github.com>2023-10-15 07:08:36 +0200
commit2f966ce4de8185121126bff945737629b42d1329 (patch)
tree4c0a58838f55d7cd8198419f9886305c5fe73032 /lib/stitches/guided_fill.py
parentbbd7391b181673eb86e9f3dd88066b9da34ba7ba (diff)
Update shapely (#2471)
* update shapely * pin pyinstaller to 5.13.2 (issues with macOS) (rejbasket) * macOS: do not install shapely from binary, but remove .dylibs folder (breaks notarizazion) (rejbasket)
Diffstat (limited to 'lib/stitches/guided_fill.py')
-rw-r--r--lib/stitches/guided_fill.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/stitches/guided_fill.py b/lib/stitches/guided_fill.py
index e4793838..67ad4ccd 100644
--- a/lib/stitches/guided_fill.py
+++ b/lib/stitches/guided_fill.py
@@ -268,7 +268,7 @@ def intersect_region_with_grating_guideline(shape, line, row_spacing, num_stagge
stitched_line = apply_stitches(offset_line, max_stitch_length, num_staggers, row_spacing, row)
intersection = shape.intersection(stitched_line)
- if shape_envelope.intersects(stitched_line):
+ if not intersection.is_empty and shape_envelope.intersects(stitched_line):
for segment in take_only_line_strings(intersection).geoms:
rows.append(segment.coords[:])
row += direction