mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-11-01 05:01:10 -06:00
Got rid of the Perl Format::STL, Format::AMF, Format::OBJ for good.
This commit is contained in:
parent
f0f550783f
commit
ee619701d8
11 changed files with 14 additions and 146 deletions
|
|
@ -30,7 +30,7 @@ my %opt = ();
|
|||
$output_file =~ s/\.amf(?:\.xml)?$/\.stl/i;
|
||||
|
||||
printf "Writing to %s\n", basename($output_file);
|
||||
Slic3r::Format::STL->write_file($output_file, $model, binary => !$opt{ascii});
|
||||
$model->store_stl(Slic3r::encode_path($output_file), binary => !$opt{ascii});
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ if (-e $ARGV[0]) {
|
|||
exit 0;
|
||||
} elsif ((my $model = Slic3r::Test::model($ARGV[0]))) {
|
||||
$ARGV[1] or die "Missing writeable destination as second argument\n";
|
||||
Slic3r::Format::STL->write_file($ARGV[1], $model);
|
||||
$model->store_stl(Slic3r::encode_path($ARGV[1]), 1);
|
||||
printf "Model $ARGV[0] written to $ARGV[1]\n";
|
||||
exit 0;
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ my %opt = ();
|
|||
|
||||
my $output_file = sprintf '%s_%02d.stl', $basename, ++$part_count;
|
||||
printf "Writing to %s\n", basename($output_file);
|
||||
Slic3r::Format::STL->write_file($output_file, $new_model, binary => !$opt{ascii});
|
||||
$new_model->store_stl(Slic3r::encode_path($output_file), !$opt{ascii});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ my %opt = ();
|
|||
}
|
||||
|
||||
printf "Writing to %s\n", basename($output_file);
|
||||
Slic3r::Format::AMF->write_file($output_file, $new_model);
|
||||
$new_model->store_amf(Slic3r::encode_path($output_file));
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue