mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-10-21 14:09:54 +02:00
Toolpaths preview
This commit is contained in:
1 parent
d8b1eff62f
commit
907de1011f
9 files changed
+532
-4
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user