Fix arrange objectfunction to avoid last object in awkward positions.
fixes #3900
This commit is contained in:
parent
d855015e2f
commit
096d0c9860
@ -277,9 +277,9 @@ protected:
|
|||||||
if (result.empty())
|
if (result.empty())
|
||||||
score = 0.50 * dist + 0.50 * density;
|
score = 0.50 * dist + 0.50 * density;
|
||||||
else
|
else
|
||||||
score = R * 0.60 * dist +
|
// Let the density matter more when fewer objects remain
|
||||||
(1.0 - R) * 0.20 * density +
|
score = 0.50 * dist + (1.0 - R) * 0.20 * density +
|
||||||
0.20 * alignment_score;
|
0.30 * alignment_score;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user