mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-07 22:14:00 -06:00
Refactoring: moved Slic3r::STL and Slic3r::AMF to Slic3r::Format::*
This commit is contained in:
parent
2a86932cfe
commit
959230b099
9 changed files with 18 additions and 18 deletions
|
@ -25,7 +25,7 @@ my %opt = ();
|
|||
}
|
||||
|
||||
{
|
||||
my $mesh = Slic3r::STL->read_file($ARGV[0]);
|
||||
my $mesh = Slic3r::Format::STL->read_file($ARGV[0]);
|
||||
my $basename = $ARGV[0];
|
||||
$basename =~ s/\.stl$//i;
|
||||
|
||||
|
@ -53,7 +53,7 @@ my %opt = ();
|
|||
my $output_file = sprintf '%s_%02d.stl', $basename, ++$part_count;
|
||||
printf "Writing to %s\n", basename($output_file);
|
||||
my $new_mesh = Slic3r::TriangleMesh->new(facets => \@facets, vertices => $mesh->vertices);
|
||||
Slic3r::STL->write_file($output_file, $new_mesh, !$opt{ascii});
|
||||
Slic3r::Format::STL->write_file($output_file, $new_mesh, !$opt{ascii});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue