mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 10:02:12 +00: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:
@@ -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) :
|
||||
|
||||
Reference in New Issue
Block a user