diff options
author | bubnikv <bubnikv@gmail.com> | 2017-06-13 12:35:24 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2017-06-13 12:35:24 +0300 |
commit | 5cae4cc614dc379b35bba6397ea2bf83f0adac56 (patch) | |
tree | 9f1016e2174d921de285055ee9ae6efa66f04dd0 /utils | |
parent | 21ddcb84871543516c2c9134ffc472e851915019 (diff) |
Fix of https://github.com/prusa3d/Slic3r/issues/285
Refactored Model.cpp/hpp to C++x11 loops,
simplified the mesh / bbox handling.
Diffstat (limited to 'utils')
-rw-r--r-- | utils/view-mesh.pl | 3 | ||||
-rw-r--r-- | utils/wireframe.pl | 1 |
2 files changed, 0 insertions, 4 deletions
diff --git a/utils/view-mesh.pl b/utils/view-mesh.pl index 687a56224..66f1f3ead 100644 --- a/utils/view-mesh.pl +++ b/utils/view-mesh.pl @@ -28,9 +28,6 @@ my %opt = (); { my $model = Slic3r::Model->read_from_file($ARGV[0]); - - # make sure all objects have at least one defined instance - $model->add_default_instances; $_->center_around_origin for @{$model->objects}; # and align to Z = 0 my $app = Slic3r::ViewMesh->new; diff --git a/utils/wireframe.pl b/utils/wireframe.pl index 053581dec..53ac69a8a 100644 --- a/utils/wireframe.pl +++ b/utils/wireframe.pl @@ -38,7 +38,6 @@ my %opt = ( { # load model my $model = Slic3r::Model->read_from_file($ARGV[0]); - $model->add_default_instances; $model->center_instances_around_point(Slic3r::Pointf->new(100,100)); my $mesh = $model->mesh; $mesh->translate(0, 0, -$mesh->bounding_box->z_min); |