mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-14 19:12:38 -07:00
Got rid of the Perl Format::STL, Format::AMF, Format::OBJ for good.
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user