From e2e14bb0a4e2d403965f644429e930684b718169 Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Thu, 4 Sep 2025 04:20:54 +0200 Subject: fix meander clamp (2) (#3945) --- lib/stitches/meander_fill.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/stitches') diff --git a/lib/stitches/meander_fill.py b/lib/stitches/meander_fill.py index 0f6ddf37..87c52e17 100644 --- a/lib/stitches/meander_fill.py +++ b/lib/stitches/meander_fill.py @@ -185,7 +185,9 @@ def post_process(points, shape, original_shape, fill): stitches = even_running_stitch(smoothed_points, fill.running_stitch_length, fill.running_stitch_tolerance) if fill.clip: - stitches = clamp_path_to_polygon(stitches, original_shape) + # the stitch path may have self intersections + # therefore we don't want clamp polygon to check for the distance to the start point of a segment + stitches = clamp_path_to_polygon(stitches, original_shape, False) if fill.bean_stitch_repeats: stitches = bean_stitch(stitches, fill.bean_stitch_repeats) -- cgit v1.2.3