mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-03-13 06:46:11 -06:00
ENH: improve auto arranging of multiple single color objects
If two objects have similar area, sort them by extruder id. jira: STUDIO-9760 github: #5738 Change-Id: I6041fef4d3bfccce767555ac382688eea59e73c7 (cherry picked from commit ac4873d97686135b773226eb3487f0cc8cfe0503)
This commit is contained in:
parent
200a811dca
commit
b3b19210b6
1 changed files with 4 additions and 2 deletions
|
|
@ -808,8 +808,10 @@ public:
|
|||
if (p1 != p2)
|
||||
return p1 > p2;
|
||||
if (params.is_seq_print) {
|
||||
return i1.bed_temp != i2.bed_temp ? (i1.bed_temp > i2.bed_temp) :
|
||||
(i1.height != i2.height ? (i1.height < i2.height) : (i1.area() > i2.area()));
|
||||
return i1.bed_temp != i2.bed_temp ? (i1.bed_temp > i2.bed_temp) :
|
||||
i1.height != i2.height ? (i1.height < i2.height) :
|
||||
std::abs(i1.area() / i2.area() - 1) > 0.2 ? (i1.area() > i2.area()) :
|
||||
i1.extrude_ids.front() < i2.extrude_ids.front();
|
||||
}
|
||||
else {
|
||||
return i1.bed_temp != i2.bed_temp ? (i1.bed_temp > i2.bed_temp) :
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue