Rename adjust_overhang_flow to overhangs
This commit is contained in:
parent
606d856af8
commit
f455ecb7da
@ -6,7 +6,8 @@ use utf8;
|
|||||||
use List::Util qw(first);
|
use List::Util qw(first);
|
||||||
|
|
||||||
# cemetery of old config settings
|
# cemetery of old config settings
|
||||||
our @Ignore = qw(duplicate_x duplicate_y multiply_x multiply_y support_material_tool acceleration);
|
our @Ignore = qw(duplicate_x duplicate_y multiply_x multiply_y support_material_tool acceleration
|
||||||
|
adjust_overhang_flow);
|
||||||
|
|
||||||
my $serialize_comma = sub { join ',', @{$_[0]} };
|
my $serialize_comma = sub { join ',', @{$_[0]} };
|
||||||
my $serialize_comma_bool = sub { join ',', map $_ // 0, @{$_[0]} };
|
my $serialize_comma_bool = sub { join ',', map $_ // 0, @{$_[0]} };
|
||||||
@ -594,10 +595,10 @@ our $Options = {
|
|||||||
type => 'bool',
|
type => 'bool',
|
||||||
default => 1,
|
default => 1,
|
||||||
},
|
},
|
||||||
'adjust_overhang_flow' => {
|
'overhangs' => {
|
||||||
label => 'Adjust overhang flow',
|
label => 'Detect overhangs',
|
||||||
tooltip => 'Experimental option to adjust flow for overhangs (bridge flow will be used).',
|
tooltip => 'Experimental option to adjust flow for overhangs (bridge flow will be used), to apply bridge speed to them and enable fan.',
|
||||||
cli => 'adjust-overhang-flow!',
|
cli => 'overhangs!',
|
||||||
type => 'bool',
|
type => 'bool',
|
||||||
default => 1,
|
default => 1,
|
||||||
},
|
},
|
||||||
|
@ -197,7 +197,7 @@ sub extrude_loop {
|
|||||||
|
|
||||||
my @paths = ();
|
my @paths = ();
|
||||||
# detect overhanging/bridging perimeters
|
# detect overhanging/bridging perimeters
|
||||||
if ($Slic3r::Config->adjust_overhang_flow && $extrusion_path->is_perimeter && @{$self->_layer_overhangs}) {
|
if ($Slic3r::Config->overhangs && $extrusion_path->is_perimeter && @{$self->_layer_overhangs}) {
|
||||||
# get non-overhang paths by subtracting overhangs from the loop
|
# get non-overhang paths by subtracting overhangs from the loop
|
||||||
push @paths,
|
push @paths,
|
||||||
$extrusion_path->subtract_expolygons($self->_layer_overhangs);
|
$extrusion_path->subtract_expolygons($self->_layer_overhangs);
|
||||||
|
@ -412,7 +412,7 @@ sub build {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title => 'Quality (slower slicing)',
|
title => 'Quality (slower slicing)',
|
||||||
options => [qw(extra_perimeters avoid_crossing_perimeters start_perimeters_at_concave_points start_perimeters_at_non_overhang thin_walls adjust_overhang_flow)],
|
options => [qw(extra_perimeters avoid_crossing_perimeters start_perimeters_at_concave_points start_perimeters_at_non_overhang thin_walls overhangs)],
|
||||||
lines => [
|
lines => [
|
||||||
Slic3r::GUI::OptionsGroup->single_option_line('extra_perimeters'),
|
Slic3r::GUI::OptionsGroup->single_option_line('extra_perimeters'),
|
||||||
Slic3r::GUI::OptionsGroup->single_option_line('avoid_crossing_perimeters'),
|
Slic3r::GUI::OptionsGroup->single_option_line('avoid_crossing_perimeters'),
|
||||||
@ -421,7 +421,7 @@ sub build {
|
|||||||
options => [qw(start_perimeters_at_concave_points start_perimeters_at_non_overhang)],
|
options => [qw(start_perimeters_at_concave_points start_perimeters_at_non_overhang)],
|
||||||
},
|
},
|
||||||
Slic3r::GUI::OptionsGroup->single_option_line('thin_walls'),
|
Slic3r::GUI::OptionsGroup->single_option_line('thin_walls'),
|
||||||
Slic3r::GUI::OptionsGroup->single_option_line('adjust_overhang_flow'),
|
Slic3r::GUI::OptionsGroup->single_option_line('overhangs'),
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -278,8 +278,8 @@ $j
|
|||||||
--start-perimeters-at-non-overhang
|
--start-perimeters-at-non-overhang
|
||||||
Try to start perimeters at non-overhang points if any (default: no)
|
Try to start perimeters at non-overhang points if any (default: no)
|
||||||
--thin-walls Detect single-width walls (default: yes)
|
--thin-walls Detect single-width walls (default: yes)
|
||||||
--adjust-overhang-flow
|
--overhangs Experimental option to use bridge flow, speed and fan for overhangs
|
||||||
Experimental option to use bridge flow for overhangs (default: yes)
|
(default: yes)
|
||||||
|
|
||||||
Support material options:
|
Support material options:
|
||||||
--support-material Generate support material for overhangs
|
--support-material Generate support material for overhangs
|
||||||
|
@ -103,7 +103,7 @@ use Slic3r::Test;
|
|||||||
$config->set('fan_below_layer_time', 0);
|
$config->set('fan_below_layer_time', 0);
|
||||||
$config->set('slowdown_below_layer_time', 0);
|
$config->set('slowdown_below_layer_time', 0);
|
||||||
$config->set('bridge_fan_speed', 100);
|
$config->set('bridge_fan_speed', 100);
|
||||||
$config->set('adjust_overhang_flow', 1);
|
$config->set('overhangs', 1);
|
||||||
my $print = Slic3r::Test::init_print('overhang', config => $config);
|
my $print = Slic3r::Test::init_print('overhang', config => $config);
|
||||||
my %layer_speeds = (); # print Z => [ speeds ]
|
my %layer_speeds = (); # print Z => [ speeds ]
|
||||||
my $fan_speed = 0;
|
my $fan_speed = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user