mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-18 20:28:08 -06:00
Toolpaths preview
This commit is contained in:
parent
d8b1eff62f
commit
907de1011f
9 changed files with 532 additions and 4 deletions
|
@ -390,6 +390,16 @@ sub raw_mesh {
|
|||
return $mesh;
|
||||
}
|
||||
|
||||
sub raw_bounding_box {
|
||||
my $self = shift;
|
||||
|
||||
my @meshes = map $_->mesh, grep !$_->modifier, @{ $self->volumes };
|
||||
die "No meshes found" if !@meshes;
|
||||
my $bb = (shift @meshes)->bounding_box;
|
||||
$bb->merge($_->bounding_box) for @meshes;
|
||||
return $bb;
|
||||
}
|
||||
|
||||
# flattens all volumes and instances into a single mesh
|
||||
sub mesh {
|
||||
my $self = shift;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue