mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-20 21:39:14 +08:00
Remove convexHull calculation for circular beds when arranging
Extremely slow
This commit is contained in:
parent
09fc025cd5
commit
221770cc94
@ -430,19 +430,6 @@ template<> std::function<double(const Item&)> AutoArranger<Circle>::get_objfn()
|
|||||||
|
|
||||||
double score = std::get<0>(result);
|
double score = std::get<0>(result);
|
||||||
|
|
||||||
auto isBig = [this](const Item& itm) {
|
|
||||||
return itm.area() / m_bin_area > BIG_ITEM_TRESHOLD ;
|
|
||||||
};
|
|
||||||
|
|
||||||
if(isBig(item)) {
|
|
||||||
auto mp = m_merged_pile;
|
|
||||||
mp.push_back(item.transformedShape());
|
|
||||||
auto chull = sl::convexHull(mp);
|
|
||||||
double miss = Placer::overfit(chull, m_bin);
|
|
||||||
if(miss < 0) miss = 0;
|
|
||||||
score += miss*miss;
|
|
||||||
}
|
|
||||||
|
|
||||||
return score;
|
return score;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user