mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-23 22:54:08 -06:00
New bridging logic, more robust. #58
This commit is contained in:
parent
1ef4d006a0
commit
a1c766cc52
8 changed files with 86 additions and 75 deletions
|
@ -156,6 +156,11 @@ sub clip_with_expolygon {
|
|||
push @polylines, $current_polyline;
|
||||
}
|
||||
|
||||
if (@polylines > 1 && scalar(@{$polylines[-1]}) == 2 && $polylines[-1][-1] eq $polylines[0][0]) {
|
||||
unshift @{$polylines[0]}, $polylines[-1][0];
|
||||
pop @polylines;
|
||||
}
|
||||
|
||||
return map Slic3r::Polyline->cast($_), @polylines;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue