summaryrefslogtreecommitdiff
path: root/lib/stitches/guided_fill.py
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2024-11-18 11:54:14 +0100
committerGitHub <noreply@github.com>2024-11-18 11:54:14 +0100
commitdde0444ac29f663579e70c1214ca4faa9862f0a6 (patch)
tree4dd9f03c41e2bb3d7e07742d6aeab0255f4eb322 /lib/stitches/guided_fill.py
parentd15b1f40c758fc6c2fe324a9926e9722d504b2a4 (diff)
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
Diffstat (limited to 'lib/stitches/guided_fill.py')
-rw-r--r--lib/stitches/guided_fill.py3
1 files changed, 2 insertions, 1 deletions
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)