Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorAlessandro Ranellucci <aar@cpan.org>2014-07-15 23:58:03 +0400
committerAlessandro Ranellucci <aar@cpan.org>2014-07-15 23:58:03 +0400
commit983cf09ee536b5bfe93360d7d25e9233c0a8de9f (patch)
tree44416f3e87efc24b9be3b0f732b26505ec9714f7 /utils
parentaa723db39b655ed622180b00ec8fe28a88a0e2dc (diff)
Display bed shape in 3D plater
Diffstat (limited to 'utils')
-rw-r--r--utils/view-mesh.pl2
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;
}