From dde0444ac29f663579e70c1214ca4faa9862f0a6 Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Mon, 18 Nov 2024 11:54:14 +0100 Subject: Manual ripple pattern (#3256) * ripple stitch: add manual pattern placement option * add flip copies option * rewrite adjust grid * more control for satin guided ripples: render at rungs --- lib/stitches/guided_fill.py | 3 ++- 1 file changed, 2 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 79eff6b5..6ad80da0 100644 --- a/lib/stitches/guided_fill.py +++ b/lib/stitches/guided_fill.py @@ -171,7 +171,8 @@ def apply_stitches(line, max_stitch_length, num_staggers, row_spacing, row_num, points = np.array([line.interpolate(projection).coords[0] for projection in projections]) if len(points) < 2: - return line + coords = line.coords + points = [coords[0], coords[-1]] stitched_line = shgeo.LineString(points) -- cgit v1.2.3