Bugfix: very wrong infill for low density regions. #127
This commit is contained in:
parent
65a018f156
commit
4af295bce3
@ -18,11 +18,14 @@ sub fill_surface {
|
|||||||
my $min_spacing = scale $params{flow_spacing};
|
my $min_spacing = scale $params{flow_spacing};
|
||||||
my $distance = $min_spacing / $params{density};
|
my $distance = $min_spacing / $params{density};
|
||||||
|
|
||||||
$distance = $self->adjust_solid_spacing(
|
my $flow_spacing;
|
||||||
width => $bounding_box->[X2] - $bounding_box->[X1],
|
if ($params{density} == 1) {
|
||||||
distance => $distance,
|
$distance = $self->adjust_solid_spacing(
|
||||||
) if $params{density} == 1;
|
width => $bounding_box->[X2] - $bounding_box->[X1],
|
||||||
my $flow_spacing = unscale $distance;
|
distance => $distance,
|
||||||
|
);
|
||||||
|
$flow_spacing = unscale $distance;
|
||||||
|
}
|
||||||
|
|
||||||
my @contour_loops = ();
|
my @contour_loops = ();
|
||||||
my @hole_loops = ();
|
my @hole_loops = ();
|
||||||
|
@ -23,11 +23,14 @@ sub fill_surface {
|
|||||||
my $distance_between_lines = $min_spacing / $params{density};
|
my $distance_between_lines = $min_spacing / $params{density};
|
||||||
my $line_oscillation = $distance_between_lines - $min_spacing;
|
my $line_oscillation = $distance_between_lines - $min_spacing;
|
||||||
|
|
||||||
$distance_between_lines = $self->adjust_solid_spacing(
|
my $flow_spacing;
|
||||||
width => $bounding_box->[X2] - $bounding_box->[X1],
|
if ($params{density} == 1) {
|
||||||
distance => $distance_between_lines,
|
$distance_between_lines = $self->adjust_solid_spacing(
|
||||||
) if $params{density} == 1;
|
width => $bounding_box->[X2] - $bounding_box->[X1],
|
||||||
my $flow_spacing = unscale $distance_between_lines;
|
distance => $distance_between_lines,
|
||||||
|
);
|
||||||
|
$flow_spacing = unscale $distance_between_lines;
|
||||||
|
}
|
||||||
|
|
||||||
my $overlap_distance = $Slic3r::nozzle_diameter * 0.20;
|
my $overlap_distance = $Slic3r::nozzle_diameter * 0.20;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user