diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2023-05-26 10:18:27 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-26 10:18:27 +0200 |
| commit | 3f7485c62edabc6bf335399f3ecc307dd3f586f0 (patch) | |
| tree | 939dbc3bc106edb433f48d40f6219a773348156d /lib/stitches/guided_fill.py | |
| parent | 07571bdedae6b81916ac5bc55ac800eccf101679 (diff) | |
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
Diffstat (limited to 'lib/stitches/guided_fill.py')
| -rw-r--r-- | lib/stitches/guided_fill.py | 6 |
1 files changed, 5 insertions, 1 deletions
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) |
