mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 23:17:35 -06:00
ENH: sync master with auto-arranging and brim
auto-arranging considers wipe tower from smooth timelapse Change-Id: I5dd72260c777abfd2894776b2588bb3ff4224416
This commit is contained in:
parent
52a52ffc08
commit
0b4b6cde4f
3 changed files with 31 additions and 44 deletions
|
@ -737,6 +737,7 @@ public:
|
|||
for (Item itm : items) {
|
||||
if (itm.is_wipe_tower) {
|
||||
starting_point = itm.boundingBox().center();
|
||||
BOOST_LOG_TRIVIAL(debug) << "arrange we have wipe tower, change starting point to: " << starting_point;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -761,15 +762,13 @@ public:
|
|||
if (on_packed)
|
||||
on_packed(ap);
|
||||
BOOST_LOG_TRIVIAL(debug) << "arrange " + last_packed.name + " succeed!"
|
||||
<< ", plate id=" << ap.bed_idx;
|
||||
<< ", plate id=" << ap.bed_idx << ", pos=" << last_packed.translation();
|
||||
}
|
||||
});
|
||||
|
||||
if (progressind) {
|
||||
m_pck.unfitIndicator([this, progressind](std::string name) {
|
||||
BOOST_LOG_TRIVIAL(debug) << "arrange not fit: " + name;
|
||||
m_pck.unfitIndicator([this](std::string name) {
|
||||
BOOST_LOG_TRIVIAL(debug) << "arrange progress: " + name;
|
||||
});
|
||||
}
|
||||
|
||||
if (stopcond) m_pck.stopCondition(stopcond);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue