From 3f7485c62edabc6bf335399f3ecc307dd3f586f0 Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Fri, 26 May 2023 10:18:27 +0200 Subject: Possible fix for parallel offset in guided fill for macOS (#2321) * fix parallel offset in guided fill for macOS * ripple grid start position * circular ripple grid --- lib/stitches/guided_fill.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/stitches/guided_fill.py') diff --git a/lib/stitches/guided_fill.py b/lib/stitches/guided_fill.py index b741ac00..b733e7a0 100644 --- a/lib/stitches/guided_fill.py +++ b/lib/stitches/guided_fill.py @@ -247,7 +247,11 @@ def intersect_region_with_grating_guideline(shape, line, row_spacing, num_stagge translate_amount = translate_direction * row * row_spacing offset_line = translate(line, xoff=translate_amount.x, yoff=translate_amount.y) elif strategy == 1: - offset_line = line.parallel_offset(row * row_spacing, 'left', join_style=shgeo.JOIN_STYLE.round) + offset = row * row_spacing + if offset == 0: + # this is needed for macOS builds + offset = 0.0001 + offset_line = line.parallel_offset(offset, 'left', join_style=shgeo.JOIN_STYLE.round) offset_line = clean_offset_line(offset_line) -- cgit v1.2.3