mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-15 18:58:00 -06:00
New --fill-every-layers option to get high accuracy on external surfaces while speeding up infill
This commit is contained in:
parent
54cc6216a1
commit
7f341cfcd3
16 changed files with 177 additions and 43 deletions
|
@ -64,9 +64,9 @@ our $Options = {
|
|||
label => 'Layer height (mm)',
|
||||
type => 'f',
|
||||
},
|
||||
'high_res_perimeters' => {
|
||||
label => 'High-res perimeters',
|
||||
type => 'bool',
|
||||
'infill_every_layers' => {
|
||||
label => 'Infill every N layers',
|
||||
type => 'i',
|
||||
},
|
||||
|
||||
# print options
|
||||
|
@ -262,6 +262,12 @@ sub validate {
|
|||
die "Invalid value for --fill-density\n"
|
||||
if $Slic3r::fill_density < 0 || $Slic3r::fill_density > 1;
|
||||
|
||||
# --infill-every-layers
|
||||
die "Invalid value for --infill-every-layers\n"
|
||||
if $Slic3r::infill_every_layers !~ /^\d+$/ || $Slic3r::infill_every_layers < 1;
|
||||
die "Maximum infill thickness can't exceed nozzle diameter\n"
|
||||
if $Slic3r::infill_every_layers * $Slic3r::layer_height > $Slic3r::nozzle_diameter;
|
||||
|
||||
# --scale
|
||||
die "Invalid value for --scale\n"
|
||||
if $Slic3r::scale <= 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue