mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-18 11:02:08 +00:00
Toolpaths preview
This commit is contained in:
@@ -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