diff options
author | bubnikv <bubnikv@gmail.com> | 2018-08-17 15:14:24 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2018-08-17 15:14:24 +0300 |
commit | 1ba64da3fee97433d6b580aae8fc8e9875143a66 (patch) | |
tree | b8c8c5239ed3ea9190cafa18afd5a95f38b80a09 /xs/src/libslic3r/PrintObject.cpp | |
parent | 3b89717149664e5702fa1e0a153e54824e2793ff (diff) |
Removed Point::scale(),translate(),coincides_with(),distance_to(),
distance_to_squared(),perp_distance_to(),negative(),vector_to(),
translate(), distance_to() etc,
replaced with the Eigen equivalents.
Diffstat (limited to 'xs/src/libslic3r/PrintObject.cpp')
-rw-r--r-- | xs/src/libslic3r/PrintObject.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/xs/src/libslic3r/PrintObject.cpp b/xs/src/libslic3r/PrintObject.cpp index b060816a1..a8404c0ed 100644 --- a/xs/src/libslic3r/PrintObject.cpp +++ b/xs/src/libslic3r/PrintObject.cpp @@ -85,11 +85,8 @@ bool PrintObject::set_copies(const Points &points) std::vector<Points::size_type> ordered_copies; Slic3r::Geometry::chained_path(points, ordered_copies); - for (size_t point_idx : ordered_copies) { - Point copy = points[point_idx]; - copy.translate(this->_copies_shift); - this->_shifted_copies.push_back(copy); - } + for (size_t point_idx : ordered_copies) + this->_shifted_copies.push_back(points[point_idx] + this->_copies_shift); bool invalidated = this->_print->invalidate_step(psSkirt); invalidated |= this->_print->invalidate_step(psBrim); |