New First layer flow ratio option. #182
This commit is contained in:
parent
eb33c03926
commit
99ef0865bb
5 changed files with 10 additions and 1 deletions
|
@ -74,6 +74,7 @@ our $infill_every_layers = 1;
|
|||
|
||||
# flow options
|
||||
our $extrusion_width_ratio = 0;
|
||||
our $first_layer_flow_ratio = 1;
|
||||
our $bridge_flow_ratio = 1;
|
||||
our $overlap_factor = 0.5;
|
||||
our $flow_width;
|
||||
|
|
|
@ -144,6 +144,11 @@ our $Options = {
|
|||
cli => 'extrusion-width-ratio=f',
|
||||
type => 'f',
|
||||
},
|
||||
'first_layer_flow_ratio' => {
|
||||
label => 'First layer flow ratio',
|
||||
cli => 'first-layer-flow-ratio=f',
|
||||
type => 'f',
|
||||
},
|
||||
'bridge_flow_ratio' => {
|
||||
label => 'Bridge flow ratio',
|
||||
cli => 'bridge-flow-ratio=f',
|
||||
|
|
|
@ -146,6 +146,7 @@ sub extrude_path {
|
|||
* $area
|
||||
* $Slic3r::extrusion_multiplier
|
||||
* (4 / (($Slic3r::filament_diameter ** 2) * PI));
|
||||
$e *= $Slic3r::first_layer_flow_ratio if $self->layer->id == 0;
|
||||
|
||||
# extrude arc or line
|
||||
$self->print_feed_rate(
|
||||
|
|
|
@ -60,7 +60,7 @@ sub new {
|
|||
},
|
||||
extrusion => {
|
||||
title => 'Extrusion',
|
||||
options => [qw(extrusion_width_ratio bridge_flow_ratio)],
|
||||
options => [qw(extrusion_width_ratio first_layer_flow_ratio bridge_flow_ratio)],
|
||||
},
|
||||
output => {
|
||||
title => 'Output',
|
||||
|
|
|
@ -196,6 +196,8 @@ Usage: slic3r.pl [ OPTIONS ] file.stl
|
|||
--extrusion-width-ratio
|
||||
Calculate the extrusion width as the layer height multiplied by
|
||||
this value (> 0, default: calculated automatically)
|
||||
--first-layer-flow-ratio
|
||||
Multiplier for extrusion of first layer (> 0, default: $Slic3r::first_layer_flow_ratio)
|
||||
--bridge-flow-ratio Multiplier for extrusion when bridging (> 0, default: $Slic3r::bridge_flow_ratio)
|
||||
|
||||
EOF
|
||||
|
|
Loading…
Reference in a new issue