mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-22 06:04:01 -06:00
Modify overhang detection algorithm
This commit is contained in:
parent
45611d6742
commit
c6ef81fb91
1 changed files with 2 additions and 1 deletions
|
@ -267,8 +267,9 @@ sub make_perimeters {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($self->id > 0) {
|
if ($self->id > 0) {
|
||||||
|
# A perimeter is considered overhang if its centerline exceeds the lower layer slices
|
||||||
my $is_overhang = $is_contour
|
my $is_overhang = $is_contour
|
||||||
? @{diff([$polygon], [ @lower_slices, offset([$polygon], -$self->perimeter_flow->scaled_width) ])}
|
? @{diff([$polygon], \@lower_slices)}
|
||||||
: !@{intersection([$polygon], \@lower_slices)};
|
: !@{intersection([$polygon], \@lower_slices)};
|
||||||
|
|
||||||
$role = EXTR_ROLE_OVERHANG_PERIMETER if $is_overhang;
|
$role = EXTR_ROLE_OVERHANG_PERIMETER if $is_overhang;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue