diff options
author | Alessandro Ranellucci <aar@cpan.org> | 2012-04-30 16:56:01 +0400 |
---|---|---|
committer | Alessandro Ranellucci <aar@cpan.org> | 2012-04-30 16:56:01 +0400 |
commit | d03925a18d78b6543c56b8cde79a97180de0b273 (patch) | |
tree | f6eb69723e88598b52693cdc06b03867a2fc22e4 /slic3r.pl | |
parent | 4bc49dcc5b794ef51a21dc73a832be290510fa03 (diff) |
New GUI with plating facilities
Diffstat (limited to 'slic3r.pl')
-rwxr-xr-x | slic3r.pl | 16 |
1 files changed, 10 insertions, 6 deletions
@@ -74,9 +74,13 @@ if (!@ARGV && !$opt{save} && eval "require Slic3r::GUI; 1") { if (@ARGV) { while (my $input_file = shift @ARGV) { - my $skein = Slic3r::Skein->new( - input_file => $input_file, - additional_input_files => $opt{merge} ? [ splice @ARGV, 0 ] : [], + my $print = Slic3r::Print->new; + $print->add_object_from_file($input_file); + if ($opt{merge}) { + $print->add_object_from_file($_) for splice @ARGV, 0; + } + $print->duplicate; + my %params = ( output_file => $opt{output}, status_cb => sub { my ($percent, $message) = @_; @@ -84,9 +88,9 @@ if (@ARGV) { }, ); if ($opt{export_svg}) { - $skein->export_svg; + $print->export_svg(%params); } else { - $skein->go; + $print->export_gcode(%params); } } } else { @@ -125,7 +129,7 @@ $j --post-process Generated G-code will be processed with the supplied script; call this more than once to process through multiple scripts. --export-svg Export a SVG file containing slices instead of G-code. - --merge If multiple files are supplied, they will be composed into a single + -m, --merge If multiple files are supplied, they will be composed into a single print rather than processed individually. Printer options: |