diff options
author | tamasmeszaros <meszaros.q@gmail.com> | 2019-07-12 22:03:49 +0300 |
---|---|---|
committer | tamasmeszaros <meszaros.q@gmail.com> | 2019-07-12 22:17:11 +0300 |
commit | df7bb94dafea6a64922184fe65db3c61f7c85da0 (patch) | |
tree | 9338cc78208b7f8b9c32dd4a2d5842ef881f2599 /src/slic3r/GUI/GLCanvas3D.hpp | |
parent | 9372f1c6ad15d6d4f938f167625ff9e8e5905cb1 (diff) |
Not handling logical beds in arrange()
Diffstat (limited to 'src/slic3r/GUI/GLCanvas3D.hpp')
-rw-r--r-- | src/slic3r/GUI/GLCanvas3D.hpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/slic3r/GUI/GLCanvas3D.hpp b/src/slic3r/GUI/GLCanvas3D.hpp index 8f419a16d..2316637d8 100644 --- a/src/slic3r/GUI/GLCanvas3D.hpp +++ b/src/slic3r/GUI/GLCanvas3D.hpp @@ -612,7 +612,7 @@ public: int get_move_volume_id() const { return m_mouse.drag.move_volume_idx; } int get_first_hover_volume_idx() const { return m_hover_volume_idxs.empty() ? -1 : m_hover_volume_idxs.front(); } - class WipeTowerInfo: public arrangement::Arrangeable { + class WipeTowerInfo { Vec2d m_pos = {std::nan(""), std::nan("")}; Vec2d m_bb_size; double m_rotation; @@ -624,9 +624,9 @@ public: return !std::isnan(m_pos.x()) && !std::isnan(m_pos.y()); } - virtual void apply_arrange_result(Vec2d offset, double rotation_rads, unsigned /*bed_num*/) override; - - virtual std::tuple<Polygon, Vec2crd, double> get_arrange_polygon() const override + void apply_arrange_result(Vec2d offset, double rotation_rads); + + arrangement::ArrangePolygon get_arrange_polygon() const { Polygon p({ {coord_t(0), coord_t(0)}, @@ -635,8 +635,9 @@ public: {coord_t(0), scaled(m_bb_size(Y))}, {coord_t(0), coord_t(0)}, }); - - return std::make_tuple(p, scaled(m_pos), m_rotation); + + ExPolygon ep; ep.contour = std::move(p); + return {ep, scaled(m_pos), m_rotation}; } }; |