diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2023-03-08 17:36:08 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-08 17:36:08 +0100 |
| commit | da1cd33f3b7fa6b85a6cdfcb855dc8a16cf3f92c (patch) | |
| tree | 9b94970736a9231e72fb85bf6816ac4bae9d3a10 | |
| parent | c993b3bcad4b555527d49f494de3e6605c09ba24 (diff) | |
fix satin guided ripple (#2124)
| -rw-r--r-- | lib/stitches/ripple_stitch.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/stitches/ripple_stitch.py b/lib/stitches/ripple_stitch.py index 33054119..f7d2e889 100644 --- a/lib/stitches/ripple_stitch.py +++ b/lib/stitches/ripple_stitch.py @@ -229,10 +229,10 @@ def _get_start_rotation(line): def _generate_satin_guide_helper_lines(stroke, outline, guide_line): spacing = guide_line.center_line.length / (stroke.get_line_count() - 1) - rail_points = guide_line.plot_points_on_rails(spacing) + pairs = guide_line.plot_points_on_rails(spacing) - point0 = rail_points[0][0] - point1 = rail_points[1][0] + point0 = pairs[0][0] + point1 = pairs[0][1] start_rotation = atan2(point1.y - point0.y, point1.x - point0.x) start_scale = (point1 - point0).length() outline_center = InkstitchPoint.from_shapely_point(outline.centroid) @@ -240,7 +240,7 @@ def _generate_satin_guide_helper_lines(stroke, outline, guide_line): line_point_dict = defaultdict(list) # add scaled and rotated outlines along the satin column guide line - for i, (point0, point1) in enumerate(zip(*rail_points)): + for i, (point0, point1) in enumerate(pairs): check_stop_flag() guide_center = (point0 + point1) / 2 |
