diff options
author | Alessandro Ranellucci <aar@cpan.org> | 2012-09-12 18:04:16 +0400 |
---|---|---|
committer | Alessandro Ranellucci <aar@cpan.org> | 2012-09-12 18:04:16 +0400 |
commit | cc8d8bd26fbd9e9f28c0639631b6f6697d7e15ab (patch) | |
tree | 90e7308e74018b05039f3ec7c36680f3a1b00b27 /slic3r.pl | |
parent | d061534b83ff2c99b71b4d52872857466a3b072b (diff) | |
parent | 2a51cad0c39adeb028b0fc90e0df6fb5092ae68d (diff) |
Merge branch 'master' into avoid-crossing-perimeters
Conflicts:
README.markdown
lib/Slic3r/Config.pm
lib/Slic3r/GCode.pm
lib/Slic3r/Print.pm
slic3r.pl
Diffstat (limited to 'slic3r.pl')
-rwxr-xr-x | slic3r.pl | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -27,6 +27,7 @@ my %cli_options = (); 'save=s' => \$opt{save}, 'load=s@' => \$opt{load}, 'ignore-nonexistent-config' => \$opt{ignore_nonexistent_config}, + 'datadir=s' => \$opt{datadir}, 'export-svg' => \$opt{export_svg}, 'merge|m' => \$opt{merge}, ); @@ -70,6 +71,10 @@ if ($opt{save}) { # launch GUI my $gui; if (!@ARGV && !$opt{save} && eval "require Slic3r::GUI; 1") { + { + no warnings 'once'; + $Slic3r::GUI::datadir = $opt{datadir} if $opt{datadir}; + } $gui = Slic3r::GUI->new; $gui->{skeinpanel}->load_config_file($_) for @{$opt{load}}; $gui->{skeinpanel}->load_config($cli_config); @@ -83,9 +88,9 @@ if (@ARGV) { # slicing from command line while (my $input_file = shift @ARGV) { my $print = Slic3r::Print->new(config => $config); - $print->add_object_from_file($input_file); + $print->add_objects_from_file($input_file); if ($opt{merge}) { - $print->add_object_from_file($_) for splice @ARGV, 0; + $print->add_objects_from_file($_) for splice @ARGV, 0; } $print->duplicate; $print->arrange_objects if @{$print->objects} > 1; @@ -214,6 +219,9 @@ $j --extra-perimeters Add more perimeters when needed (default: yes) --randomize-start Randomize starting point across layers (default: yes) --avoid-crossing-perimeters Optimize travel moves so that no perimeters are crossed (default: no) + --only-retract-when-crossing-perimeters + Disable retraction when travelling between infill paths inside the same island. + (default: no) --solid-infill-below-area Force solid infill when a region has a smaller area than this threshold (mm^2, default: $config->{solid_infill_below_area}) |