summaryrefslogtreecommitdiff
path: root/lib/utils/smoothing.py
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2025-11-07 17:10:03 +0100
committerGitHub <noreply@github.com>2025-11-07 17:10:03 +0100
commit5a9ae03dc14ea5b68a99581c21a5d8085f1a3243 (patch)
tree4b729fbdc8656f3ba75b7dfdd2ccfecdd8718fee /lib/utils/smoothing.py
parent383f164b6d90c0819d49f4fb16deb9efa3e11df2 (diff)
Running stitch length sequence (#4034)
* allow running stitch length sequences * contour fill: fix error message for long stitch length * satin: fix center underlay stitch length
Diffstat (limited to 'lib/utils/smoothing.py')
-rw-r--r--lib/utils/smoothing.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils/smoothing.py b/lib/utils/smoothing.py
index 1511b0a3..c451140c 100644
--- a/lib/utils/smoothing.py
+++ b/lib/utils/smoothing.py
@@ -44,7 +44,7 @@ def smooth_path(path, smoothness=1.0, iterations=5):
#
# Fortunately, we can convert the path to segments that are mostly the same
# length by using the running stitch algorithm.
- points = stitch_curve_evenly(points, smoothness * 5, smoothness * 2)
+ points, _ = stitch_curve_evenly(points, [smoothness * 5], smoothness * 2)
points = np.array(points)
for _ in range(iterations):
ll = points.repeat(2, axis=0)