Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Ranellucci <aar@cpan.org>2012-04-30 16:56:01 +0400
committerAlessandro Ranellucci <aar@cpan.org>2012-04-30 16:56:01 +0400
commitd03925a18d78b6543c56b8cde79a97180de0b273 (patch)
treef6eb69723e88598b52693cdc06b03867a2fc22e4 /slic3r.pl
parent4bc49dcc5b794ef51a21dc73a832be290510fa03 (diff)
New GUI with plating facilities
Diffstat (limited to 'slic3r.pl')
-rwxr-xr-xslic3r.pl16
1 files changed, 10 insertions, 6 deletions
diff --git a/slic3r.pl b/slic3r.pl
index dce403ac9..68ed125c5 100755
--- a/slic3r.pl
+++ b/slic3r.pl
@@ -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: