circular fill: use first boundary linestring if outline is multilinestring (#3694)

pull/3699/head
Kaalleen 2025-04-27 21:20:32 +02:00 zatwierdzone przez GitHub
rodzic b8d5ec0e29
commit 3b47c180fd
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -118,6 +118,8 @@ def _apply_bean_stitch_and_repeats(stitches, repeats, bean_stitch_repeats):
def _apply_start_end_commands(shape, path, starting_point, ending_point):
if starting_point or ending_point:
outline = shape.boundary
if isinstance(outline, shgeo.MultiLineString):
outline = outline.geoms[0]
if starting_point:
start = _get_start_end_sequence(outline, shgeo.Point(*starting_point), shgeo.Point(*path[0]))
path = list(start.coords) + path