XYZ mirroring from plater

This commit is contained in:
Alessandro Ranellucci 2014-06-14 21:14:33 +02:00
parent ec7bb40da9
commit e9910a2c0b
7 changed files with 84 additions and 2 deletions

View file

@ -479,6 +479,19 @@ sub rotate {
$self->invalidate_bounding_box;
}
sub flip {
my ($self, $axis) = @_;
if ($axis == X) {
$_->mesh->flip_x for @{$self->volumes};
} elsif ($axis == Y) {
$_->mesh->flip_y for @{$self->volumes};
} elsif ($axis == Z) {
$_->mesh->flip_z for @{$self->volumes};
}
$self->invalidate_bounding_box;
}
sub materials_count {
my $self = shift;