Options to set extruder clearance for sequential printing and graphical preview of collisions

This commit is contained in:
Alessandro Ranellucci 2012-05-23 11:47:52 +02:00
parent 2c28d2f874
commit 5a78111efa
8 changed files with 113 additions and 18 deletions

View file

@ -262,11 +262,6 @@ our $Options = {
values => [0,1],
labels => [qw(Primary Secondary)],
},
'complete_objects' => {
label => 'Complete individual objects (watch out for extruder collisions if you enable this)',
cli => 'complete-objects',
type => 'bool',
},
'start_gcode' => {
label => 'Start G-code',
cli => 'start-gcode=s',
@ -442,6 +437,23 @@ our $Options = {
type => 'i',
aliases => [qw(multiply_distance)],
},
# sequential printing options
'complete_objects' => {
label => 'Complete individual objects (watch out for extruder collisions)',
cli => 'complete-objects',
type => 'bool',
},
'extruder_clearance_radius' => {
label => 'Extruder clearance radius (mm)',
cli => 'extruder-clearance-radius=f',
type => 'i',
},
'extruder_clearance_height' => {
label => 'Extruder clearance height (mm)',
cli => 'extruder-clearance-height=f',
type => 'i',
},
};
sub get {
@ -671,7 +683,13 @@ sub validate {
# --bridge-flow-ratio
die "Invalid value for --bridge-flow-ratio\n"
if $Slic3r::bridge_flow_ratio <= 0;
# extruder clearance
die "Invalid value for --extruder-clearance-radius\n"
if $Slic3r::extruder_clearance_radius <= 0;
die "Invalid value for --extruder-clearance-height\n"
if $Slic3r::extruder_clearance_height <= 0;
$Slic3r::first_layer_temperature //= $Slic3r::temperature; #/
$Slic3r::first_layer_bed_temperature //= $Slic3r::bed_temperature; #/