Fixed one little regression in gap detection causing some very very narrow gaps to be skipped when external perimeter extrusion width was much smaller than perimeter extrusion width. Also, push a bit more material in gap fill. #2560
This commit is contained in:
parent
a547645e86
commit
7c31134a66
@ -174,8 +174,8 @@ sub process {
|
|||||||
# (but still long enough to escape the area threshold) that gap fill
|
# (but still long enough to escape the area threshold) that gap fill
|
||||||
# won't be able to fill but we'd still remove from infill area
|
# won't be able to fill but we'd still remove from infill area
|
||||||
my $diff = diff_ex(
|
my $diff = diff_ex(
|
||||||
offset(\@last, -0.5*$pspacing),
|
offset(\@last, -0.5*$distance),
|
||||||
offset(\@offsets, +0.5*$pspacing + 10), # safety offset
|
offset(\@offsets, +0.5*$distance + 10), # safety offset
|
||||||
);
|
);
|
||||||
push @gaps, map $_->clone, map @$_, grep abs($_->area) >= $gap_area_threshold, @$diff;
|
push @gaps, map $_->clone, map @$_, grep abs($_->area) >= $gap_area_threshold, @$diff;
|
||||||
}
|
}
|
||||||
@ -282,11 +282,11 @@ sub process {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
# where $pwidth < thickness < 2*$pspacing, infill with width = 1.5*$pwidth
|
# where $pwidth < thickness < 2*$pspacing, infill with width = 2*$pwidth
|
||||||
# where 0.5*$pwidth < thickness < $pwidth, infill with width = 0.5*$pwidth
|
# where 0.1*$pwidth < thickness < $pwidth, infill with width = 1*$pwidth
|
||||||
my @gap_sizes = (
|
my @gap_sizes = (
|
||||||
[ $pwidth, 2*$pspacing, unscale 1.5*$pwidth ],
|
[ $pwidth, 2*$pspacing, unscale 2*$pwidth ],
|
||||||
[ 0.1*$pwidth, $pwidth, unscale 0.5*$pwidth ],
|
[ 0.1*$pwidth, $pwidth, unscale 1*$pwidth ],
|
||||||
);
|
);
|
||||||
foreach my $gap_size (@gap_sizes) {
|
foreach my $gap_size (@gap_sizes) {
|
||||||
my @gap_fill = $self->_fill_gaps(@$gap_size, \@gaps);
|
my @gap_fill = $self->_fill_gaps(@$gap_size, \@gaps);
|
||||||
|
Loading…
Reference in New Issue
Block a user