Fix overhang detection for contours

This commit is contained in:
Alessandro Ranellucci 2013-05-15 10:50:38 +02:00
parent 575127151b
commit a94d26b1ce

View file

@ -268,7 +268,7 @@ sub make_perimeters {
if ($self->id > 0) {
my $is_overhang = $is_contour
? @{diff([$polygon], \@lower_slices)}
? @{diff([$polygon], [ @lower_slices, offset([$polygon], -$self->perimeter_flow->scaled_width) ])}
: !@{intersection([$polygon], \@lower_slices)};
$role = EXTR_ROLE_OVERHANG_PERIMETER if $is_overhang;