mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-14 18:27:58 -06:00
parent
1dec3fe9cb
commit
0d20f13196
3 changed files with 35 additions and 40 deletions
|
@ -233,11 +233,7 @@ bool Bed3D::set_shape(const Pointfs& printable_area, const double printable_heig
|
|||
|
||||
//BBS: add part plate logic, apply position to bed shape
|
||||
BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << boost::format(":current position {%1%,%2%}, new position {%3%, %4%}") % m_position.x() % m_position.y() % position.x() % position.y();
|
||||
BoundingBoxf bounding_box;
|
||||
for (const Vec2d& p : printable_area) {
|
||||
bounding_box.merge({ p(0), p(1)});
|
||||
}
|
||||
m_position = position - bounding_box.min;
|
||||
m_position = position;
|
||||
m_bed_shape = printable_area;
|
||||
if ((position(0) != 0) || (position(1) != 0)) {
|
||||
Pointfs new_bed_shape;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue