diff options
author | Alessandro Ranellucci <aar@cpan.org> | 2014-07-15 23:58:03 +0400 |
---|---|---|
committer | Alessandro Ranellucci <aar@cpan.org> | 2014-07-15 23:58:03 +0400 |
commit | 983cf09ee536b5bfe93360d7d25e9233c0a8de9f (patch) | |
tree | 44416f3e87efc24b9be3b0f732b26505ec9714f7 /utils | |
parent | aa723db39b655ed622180b00ec8fe28a88a0e2dc (diff) |
Display bed shape in 3D plater
Diffstat (limited to 'utils')
-rw-r--r-- | utils/view-mesh.pl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/view-mesh.pl b/utils/view-mesh.pl index 4847da7fb..a696d7c85 100644 --- a/utils/view-mesh.pl +++ b/utils/view-mesh.pl @@ -33,6 +33,8 @@ my %opt = (); my $app = Slic3r::ViewMesh->new; $app->{canvas}->load_object($model->objects->[0]); + $app->{canvas}->set_bounding_box($model->objects->[0]->bounding_box); + $app->{canvas}->set_auto_bed_shape; $app->{canvas}->SetCuttingPlane($opt{cut}) if defined $opt{cut}; $app->MainLoop; } |