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

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2017-06-13 12:35:24 +0300
committerbubnikv <bubnikv@gmail.com>2017-06-13 12:35:24 +0300
commit5cae4cc614dc379b35bba6397ea2bf83f0adac56 (patch)
tree9f1016e2174d921de285055ee9ae6efa66f04dd0 /utils
parent21ddcb84871543516c2c9134ffc472e851915019 (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.pl3
-rw-r--r--utils/wireframe.pl1
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);