New Slic3r::TriangleMesh::XS class

This commit is contained in:
Alessandro Ranellucci 2013-06-24 19:35:49 +02:00
parent b33b30b09d
commit f29faf0548
8 changed files with 116 additions and 76 deletions

View file

@ -100,7 +100,10 @@ if (@ARGV) { # slicing from command line
my $output_file = $file;
$output_file =~ s/\.(stl)$/_fixed.obj/i;
Slic3r::TriangleMesh::XS::stl_repair($file, $output_file);
my $tmesh = Slic3r::TriangleMesh::XS->new();
$tmesh->ReadSTLFile($file);
$tmesh->Repair;
$tmesh->WriteOBJFile($output_file);
}
exit;
}