New --first-layer-extrusion-width option. #385

This commit is contained in:
Alessandro Ranellucci 2012-06-06 17:29:12 +02:00
parent d412820733
commit 8a031fe501
13 changed files with 117 additions and 76 deletions

View file

@ -64,7 +64,7 @@ sub fill_surface {
$path->deserialize;
# clip the path to avoid the extruder to get exactly on the first point of the loop
$path->clip_end(scale $Slic3r::flow_width * 0.15);
$path->clip_end(scale($self->layer->flow_width || $Slic3r::flow_width) * 0.15);
push @paths, $path->points if @{$path->points};
}

View file

@ -21,7 +21,7 @@ sub fill_surface {
# infill math
my $min_spacing = scale $params{flow_spacing};
my $distance = $min_spacing / $params{density};
my $overlap_distance = scale $Slic3r::flow_width * 0.4;
my $overlap_distance = scale($self->layer->flow_width || $Slic3r::flow_width) * 0.4;
my $cache_id = sprintf "d%s_s%s_a%s",
$params{density}, $params{flow_spacing}, $rotate_vector->[0][0];

View file

@ -32,7 +32,7 @@ sub fill_surface {
$flow_spacing = unscale $distance_between_lines;
}
my $overlap_distance = scale $Slic3r::flow_width * 0.4;
my $overlap_distance = scale($self->layer->flow_width || $Slic3r::flow_width) * 0.4;
my $x = $bounding_box->[X1];
my $is_line_pattern = $self->isa('Slic3r::Fill::Line');