mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 11:23:42 +00:00
Bugfix: very wrong infill for low density regions. #127
This commit is contained in:
@@ -18,11 +18,14 @@ sub fill_surface {
|
||||
my $min_spacing = scale $params{flow_spacing};
|
||||
my $distance = $min_spacing / $params{density};
|
||||
|
||||
$distance = $self->adjust_solid_spacing(
|
||||
width => $bounding_box->[X2] - $bounding_box->[X1],
|
||||
distance => $distance,
|
||||
) if $params{density} == 1;
|
||||
my $flow_spacing = unscale $distance;
|
||||
my $flow_spacing;
|
||||
if ($params{density} == 1) {
|
||||
$distance = $self->adjust_solid_spacing(
|
||||
width => $bounding_box->[X2] - $bounding_box->[X1],
|
||||
distance => $distance,
|
||||
);
|
||||
$flow_spacing = unscale $distance;
|
||||
}
|
||||
|
||||
my @contour_loops = ();
|
||||
my @hole_loops = ();
|
||||
|
||||
Reference in New Issue
Block a user