mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 01:07:57 -06:00
ENH: auto-arrange handles 4*4 alignment better
I improve the cost function to align big item better. JIRA: https://jira.bambooolab.com/browse/STUDIO-1221 Change-Id: Id5a16c127ec51bf7463e331058cb1a8f78b764ca (cherry picked from commit 39773a901df82081c7d9d089807a52aa09e6a498)
This commit is contained in:
parent
6bc580930e
commit
12206e59b4
1 changed files with 3 additions and 2 deletions
|
@ -356,9 +356,10 @@ protected:
|
||||||
score = dist_for_BOTTOM_LEFT(ibb, origin_pack);
|
score = dist_for_BOTTOM_LEFT(ibb, origin_pack);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
score = 0.5 * norm(pl::distance(ibb.center(), origin_pack));
|
|
||||||
if (m_pilebb.defined)
|
if (m_pilebb.defined)
|
||||||
score += 0.5 * norm(pl::distance(ibb.center(), m_pilebb.center()));
|
score = 0.5 * norm(pl::distance(ibb.center(), m_pilebb.center()));
|
||||||
|
else
|
||||||
|
score = 0.5 * norm(pl::distance(ibb.center(), origin_pack));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue