Toolpaths preview

This commit is contained in:
Alessandro Ranellucci 2014-07-03 09:24:19 +02:00
parent d8b1eff62f
commit 907de1011f
9 changed files with 532 additions and 4 deletions

View file

@ -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;