mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 01:07:57 -06:00
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
|
# flow options
|
||||||
our $extrusion_width_ratio = 0;
|
our $extrusion_width_ratio = 0;
|
||||||
|
our $first_layer_flow_ratio = 1;
|
||||||
our $bridge_flow_ratio = 1;
|
our $bridge_flow_ratio = 1;
|
||||||
our $overlap_factor = 0.5;
|
our $overlap_factor = 0.5;
|
||||||
our $flow_width;
|
our $flow_width;
|
||||||
|
|
|
@ -144,6 +144,11 @@ our $Options = {
|
||||||
cli => 'extrusion-width-ratio=f',
|
cli => 'extrusion-width-ratio=f',
|
||||||
type => 'f',
|
type => 'f',
|
||||||
},
|
},
|
||||||
|
'first_layer_flow_ratio' => {
|
||||||
|
label => 'First layer flow ratio',
|
||||||
|
cli => 'first-layer-flow-ratio=f',
|
||||||
|
type => 'f',
|
||||||
|
},
|
||||||
'bridge_flow_ratio' => {
|
'bridge_flow_ratio' => {
|
||||||
label => 'Bridge flow ratio',
|
label => 'Bridge flow ratio',
|
||||||
cli => 'bridge-flow-ratio=f',
|
cli => 'bridge-flow-ratio=f',
|
||||||
|
|
|
@ -146,6 +146,7 @@ sub extrude_path {
|
||||||
* $area
|
* $area
|
||||||
* $Slic3r::extrusion_multiplier
|
* $Slic3r::extrusion_multiplier
|
||||||
* (4 / (($Slic3r::filament_diameter ** 2) * PI));
|
* (4 / (($Slic3r::filament_diameter ** 2) * PI));
|
||||||
|
$e *= $Slic3r::first_layer_flow_ratio if $self->layer->id == 0;
|
||||||
|
|
||||||
# extrude arc or line
|
# extrude arc or line
|
||||||
$self->print_feed_rate(
|
$self->print_feed_rate(
|
||||||
|
|
|
@ -60,7 +60,7 @@ sub new {
|
||||||
},
|
},
|
||||||
extrusion => {
|
extrusion => {
|
||||||
title => 'Extrusion',
|
title => 'Extrusion',
|
||||||
options => [qw(extrusion_width_ratio bridge_flow_ratio)],
|
options => [qw(extrusion_width_ratio first_layer_flow_ratio bridge_flow_ratio)],
|
||||||
},
|
},
|
||||||
output => {
|
output => {
|
||||||
title => 'Output',
|
title => 'Output',
|
||||||
|
|
|
@ -196,6 +196,8 @@ Usage: slic3r.pl [ OPTIONS ] file.stl
|
||||||
--extrusion-width-ratio
|
--extrusion-width-ratio
|
||||||
Calculate the extrusion width as the layer height multiplied by
|
Calculate the extrusion width as the layer height multiplied by
|
||||||
this value (> 0, default: calculated automatically)
|
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)
|
--bridge-flow-ratio Multiplier for extrusion when bridging (> 0, default: $Slic3r::bridge_flow_ratio)
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue