mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-09-06 02:43:48 +02:00
Adapt find_new_position is WIP. Cleaning up comments.
This commit is contained in:
@@ -39,6 +39,15 @@ public:
|
||||
|
||||
std::vector<Placer> placers;
|
||||
placers.reserve(last-first);
|
||||
|
||||
std::for_each(first, last, [this](Item& itm) {
|
||||
if(itm.isFixed()) {
|
||||
if(packed_bins_.empty()) packed_bins_.emplace_back();
|
||||
packed_bins_.front().emplace_back(itm);
|
||||
} else {
|
||||
store_.emplace_back(itm);
|
||||
}
|
||||
});
|
||||
|
||||
// If the packed_items array is not empty we have to create as many
|
||||
// placers as there are elements in packed bins and preload each item
|
||||
@@ -49,8 +58,6 @@ public:
|
||||
placers.back().preload(ig);
|
||||
}
|
||||
|
||||
std::copy(first, last, std::back_inserter(store_));
|
||||
|
||||
auto sortfunc = [](Item& i1, Item& i2) {
|
||||
return i1.area() > i2.area();
|
||||
};
|
||||
@@ -76,7 +83,6 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
auto it = store_.begin();
|
||||
|
||||
while(it != store_.end() && !cancelled()) {
|
||||
|
||||
Reference in New Issue
Block a user