diff options
author | bubnikv <bubnikv@gmail.com> | 2018-08-21 23:14:47 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2018-08-21 23:14:47 +0300 |
commit | ac72cd779ff7030213d41312a000deff68957c3c (patch) | |
tree | 2887927ae9c3188e65a1d187f54870330d6f473c /xs/src/libslic3r/PrintObject.cpp | |
parent | 0b5b02e0027b9994e26f5b719355d6e08bb4b2db (diff) |
Replaced Point3 with Eigen Vec3crd, removed Point3 from the Perl binding.
Diffstat (limited to 'xs/src/libslic3r/PrintObject.cpp')
-rw-r--r-- | xs/src/libslic3r/PrintObject.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xs/src/libslic3r/PrintObject.cpp b/xs/src/libslic3r/PrintObject.cpp index 54f7cb30a..d03b99416 100644 --- a/xs/src/libslic3r/PrintObject.cpp +++ b/xs/src/libslic3r/PrintObject.cpp @@ -38,6 +38,7 @@ PrintObject::PrintObject(Print* print, ModelObject* model_object, const Bounding typed_slices(false), _print(print), _model_object(model_object), + size(Vec3crd::Zero()), layer_height_profile_valid(false) { // Compute the translation to be applied to our meshes so that we work with smaller coordinates @@ -50,8 +51,7 @@ PrintObject::PrintObject(Print* print, ModelObject* model_object, const Bounding // (copies are expressed in G-code coordinates and this translation is not publicly exposed). this->_copies_shift = Point::new_scale(modobj_bbox.min(0), modobj_bbox.min(1)); // Scale the object size and store it - Vec3d size = modobj_bbox.size(); - this->size = Point3::new_scale(size(0), size(1), size(2)); + this->size = (modobj_bbox.size() * (1. / SCALING_FACTOR)).cast<coord_t>(); } this->reload_model_instances(); |