New option to make infill before perimeters. #1039

This commit is contained in:
Alessandro Ranellucci 2013-03-10 18:15:44 +01:00
parent ab3d1ac820
commit 2942485a94
5 changed files with 12 additions and 2 deletions

View File

@ -205,6 +205,7 @@ The author of the Silk icon set is Mark James.
(mm^2, default: 70)
--infill-only-where-needed
Only infill under ceilings (default: no)
--infill-first Make infill before perimeters (default: no)
Support material options:
--support-material Generate support material for overhangs

View File

@ -395,6 +395,13 @@ our $Options = {
type => 'bool',
default => 0,
},
'infill_first' => {
label => 'Infill before perimeters',
tooltip => 'This option will switch the print order of perimeters and infill, making the latter first.',
cli => 'infill-first!',
type => 'bool',
default => 0,
},
# flow options
'extrusion_width' => {

View File

@ -419,7 +419,7 @@ sub build {
{
title => 'Advanced',
options => [qw(infill_every_layers infill_only_where_needed solid_infill_every_layers fill_angle
solid_infill_below_area only_retract_when_crossing_perimeters)],
solid_infill_below_area only_retract_when_crossing_perimeters infill_first)],
},
]);

View File

@ -909,7 +909,8 @@ sub write_gcode {
};
# give priority to infill if we were already using its extruder
if ($gcodegen->multiple_extruders && $region->extruders->{infill} eq $gcodegen->extruder) {
if ($Slic3r::Config->infill_first
|| ($gcodegen->multiple_extruders && $region->extruders->{infill} eq $gcodegen->extruder)) {
$extrude_fills->();
$extrude_perimeters->();
} else {

View File

@ -258,6 +258,7 @@ $j
(mm^2, default: $config->{solid_infill_below_area})
--infill-only-where-needed
Only infill under ceilings (default: no)
--infill-first Make infill before perimeters (default: no)
Support material options:
--support-material Generate support material for overhangs