Update satin_column.py

pull/2578/head dev-build-claudine-fix_cut_satin_for_sided_properties
Claudine 2023-10-28 18:10:54 +02:00
rodzic 886cba55f2
commit 06677bc14b
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -813,6 +813,7 @@ class SatinColumn(EmbroideryElement):
path_lists[0].append(before)
path_lists[1].append(after)
else:
# rails have opposite direction
rail = rails[0]
before, after = cut(rail, rail.project(shgeo.Point(cut_points[0])))
path_lists[0].append(before)
@ -854,6 +855,7 @@ class SatinColumn(EmbroideryElement):
for path_list in path_lists:
if len(path_list) in (2, 4):
# Add the rung just after the start of the satin.
# If the rails have opposite directions it may end up at the end of the satin.
rung_start = path_list[0].interpolate(0.3)
rails_to_reverse = self._get_rails_to_reverse()
if rails_to_reverse[0] == rails_to_reverse[1]: