mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-24 07:03:59 -06:00
1st attempt of perl callback from c++ for 3DScene
This commit is contained in:
parent
986630c2dc
commit
f4303ebdb8
11 changed files with 181 additions and 10 deletions
|
@ -926,13 +926,15 @@ sub zoom_to_bed {
|
|||
}
|
||||
}
|
||||
|
||||
sub zoom_to_volume {
|
||||
my ($self, $volume_idx) = @_;
|
||||
|
||||
my $volume = $self->volumes->[$volume_idx];
|
||||
my $bb = $volume->transformed_bounding_box;
|
||||
$self->zoom_to_bounding_box($bb);
|
||||
}
|
||||
#==============================================================================================================================
|
||||
#sub zoom_to_volume {
|
||||
# my ($self, $volume_idx) = @_;
|
||||
#
|
||||
# my $volume = $self->volumes->[$volume_idx];
|
||||
# my $bb = $volume->transformed_bounding_box;
|
||||
# $self->zoom_to_bounding_box($bb);
|
||||
#}
|
||||
#==============================================================================================================================
|
||||
|
||||
sub zoom_to_volumes {
|
||||
my ($self) = @_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue