Bugfix: extrusion width setting for support material was only affecting the path spacing but not the actual flow. #666

degen-loop-screen
Alessandro Ranellucci 2012-09-12 12:13:43 +02:00
parent d848e2d4c9
commit f314cedd8f
5 changed files with 6 additions and 5 deletions

View File

@ -170,7 +170,7 @@ sub make_fill {
? ($surface->surface_type == S_TYPE_TOP ? EXTR_ROLE_TOPSOLIDFILL : EXTR_ROLE_SOLIDFILL) ? ($surface->surface_type == S_TYPE_TOP ? EXTR_ROLE_TOPSOLIDFILL : EXTR_ROLE_SOLIDFILL)
: EXTR_ROLE_FILL), : EXTR_ROLE_FILL),
depth_layers => $surface->depth_layers, depth_layers => $surface->depth_layers,
flow_spacing => $params->{flow_spacing} || $flow_spacing, flow_spacing => $params->{flow_spacing} || (warn "Warning: no flow_spacing was returned by the infill engine, please report this to the developer\n"),
), @paths, ), @paths,
], ],
); );

View File

@ -18,7 +18,7 @@ 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};
my $flow_spacing; my $flow_spacing = $params{flow_spacing};
if ($params{density} == 1) { if ($params{density} == 1) {
$distance = $self->adjust_solid_spacing( $distance = $self->adjust_solid_spacing(
width => $bounding_box->[X2] - $bounding_box->[X1], width => $bounding_box->[X2] - $bounding_box->[X1],

View File

@ -94,7 +94,8 @@ sub fill_surface {
paths => [ map Slic3r::ExtrusionPath->pack(polyline => $_, role => -1), @paths ], paths => [ map Slic3r::ExtrusionPath->pack(polyline => $_, role => -1), @paths ],
); );
return {}, map $_->polyline, $collection->shortest_path; return { flow_spacing => $params{flow_spacing} },
map $_->polyline, $collection->shortest_path;
} }
1; 1;

View File

@ -60,7 +60,7 @@ sub fill_surface {
# paths must be rotated back # paths must be rotated back
$self->rotate_points_back(\@paths, $rotate_vector); $self->rotate_points_back(\@paths, $rotate_vector);
return {}, @paths; return { flow_spacing => $params{flow_spacing} }, @paths;
} }
1; 1;

View File

@ -22,7 +22,7 @@ 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;
my $flow_spacing; my $flow_spacing = $params{flow_spacing};
if ($params{density} == 1) { if ($params{density} == 1) {
$distance_between_lines = $self->adjust_solid_spacing( $distance_between_lines = $self->adjust_solid_spacing(
width => $bounding_box->[X2] - $bounding_box->[X1], width => $bounding_box->[X2] - $bounding_box->[X1],