mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-15 02:37:51 -06:00
Polishing autoplacement feature for testing
This commit is contained in:
parent
f129a92405
commit
4e8c570d52
3 changed files with 66 additions and 45 deletions
|
@ -911,12 +911,13 @@ private:
|
|||
if(config_.object_function) _objfunc = config_.object_function;
|
||||
else {
|
||||
|
||||
// Inside check has to be strict if no alignment was enabled.
|
||||
// Inside check has to be strict if no alignment was enabled
|
||||
std::function<double(const Box&)> ins_check;
|
||||
if(config_.alignment == Config::Alignment::DONT_ALIGN)
|
||||
ins_check = [&binbb, norm](const Box& fullbb) {
|
||||
double ret = 0;
|
||||
if(sl::isInside<RawShape>(fullbb, binbb)) ret += norm;
|
||||
if(sl::isInside<RawShape>(fullbb, binbb))
|
||||
ret += norm*norm;
|
||||
return ret;
|
||||
};
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue