mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-11-02 20:51:23 -07:00
Finished --cut implementation
This commit is contained in:
parent
fe1691c151
commit
4f5d9ca795
8 changed files with 2009 additions and 10 deletions
|
|
@ -132,9 +132,9 @@ if (@ARGV) { # slicing from command line
|
|||
$mesh->cut($opt{cut}, $upper, $lower);
|
||||
$upper->repair;
|
||||
$lower->repair;
|
||||
Slic3r::Format::STL->write_file("${file}_upper.stl", $upper, binary => 0)
|
||||
$upper->write_ascii("${file}_upper.stl")
|
||||
if $upper->facets_count > 0;
|
||||
Slic3r::Format::STL->write_file("${file}_lower.stl", $lower, binary => 0)
|
||||
$lower->write_ascii("${file}_lower.stl")
|
||||
if $lower->facets_count > 0;
|
||||
}
|
||||
exit;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue