mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-07-25 05:04:29 +08:00
Modify overhang detection algorithm
This commit is contained in:
parent
45611d6742
commit
c6ef81fb91
@ -267,8 +267,9 @@ sub make_perimeters {
|
||||
}
|
||||
|
||||
if ($self->id > 0) {
|
||||
# A perimeter is considered overhang if its centerline exceeds the lower layer slices
|
||||
my $is_overhang = $is_contour
|
||||
? @{diff([$polygon], [ @lower_slices, offset([$polygon], -$self->perimeter_flow->scaled_width) ])}
|
||||
? @{diff([$polygon], \@lower_slices)}
|
||||
: !@{intersection([$polygon], \@lower_slices)};
|
||||
|
||||
$role = EXTR_ROLE_OVERHANG_PERIMETER if $is_overhang;
|
||||
|
Loading…
x
Reference in New Issue
Block a user