Allow for different speed on bottom layer
This commit is contained in:
parent
9e111d0a6d
commit
778e4f6ffa
@ -35,6 +35,7 @@ Slic3r is able to:
|
||||
* generate rectilinear feed (100% solid for external surfaces or with customizable less density for inner surfaces);
|
||||
* use relative or absolute extrusion commands;
|
||||
* center print around bed center point;
|
||||
* use different speed for bottom layer;
|
||||
* output relevant GCODE.
|
||||
|
||||
Roadmap include the following goals:
|
||||
|
@ -109,12 +109,13 @@ sub export_gcode {
|
||||
($point->x * $Slic3r::resolution) + $shift[X],
|
||||
($point->y * $Slic3r::resolution) + $shift[Y], #**
|
||||
$z;
|
||||
my $speed_multiplier = $z == 0 ? $Slic3r::bottom_layer_speed_ratio : 1;
|
||||
if ($extrusion_distance) {
|
||||
printf $fh " F%.${dec}f E%.${dec}f",
|
||||
$print_feed_rate,
|
||||
($print_feed_rate * $speed_multiplier),
|
||||
($extrusion_distance * $extrusion_speed_ratio * $Slic3r::resolution);
|
||||
} else {
|
||||
printf $fh " F%.${dec}f", $travel_feed_rate;
|
||||
printf $fh " F%.${dec}f", ($travel_feed_rate * $speed_multiplier);
|
||||
}
|
||||
printf $fh " ; %s", $comment if $comment;
|
||||
print $fh "\n";
|
||||
|
Loading…
Reference in New Issue
Block a user