summaryrefslogtreecommitdiff
path: root/lib/extensions/convert_to_satin.py
diff options
context:
space:
mode:
authorKaalleen <reni@allenka.de>2023-07-09 10:05:24 +0200
committerKaalleen <reni@allenka.de>2023-07-09 10:05:24 +0200
commitb01870890b07c8e9ac4c843fac9461c7086f31f7 (patch)
tree08fc7cd8eb3d4244fc4328cc833d386182cfd331 /lib/extensions/convert_to_satin.py
parentf1b63d8efefbcf8923d997cc0da18e4329fbe77e (diff)
avoid duplicated nodes
transform issue
Diffstat (limited to 'lib/extensions/convert_to_satin.py')
-rw-r--r--lib/extensions/convert_to_satin.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/extensions/convert_to_satin.py b/lib/extensions/convert_to_satin.py
index 03a4d6e4..c579e9b4 100644
--- a/lib/extensions/convert_to_satin.py
+++ b/lib/extensions/convert_to_satin.py
@@ -319,10 +319,8 @@ class ConvertToSatin(InkstitchExtension):
# Rotate 90 degrees left to make a normal vector.
normal = tangent.rotate_left()
- # Travel 75% of the stroke width left and right to make the rung's
- # endpoints. This means the rung's length is 150% of the stroke
- # width.
- offset = normal * stroke_width * 0.75
+ # Extend the rungs by an offset value to make sure they will cross the rails
+ offset = normal * (stroke_width / 2) * 1.2
rung_start = rung_center + offset
rung_end = rung_center - offset