fix arrange all sorting
This commit is contained in:
parent
c6e94f9e36
commit
d85fce0713
2 changed files with 5 additions and 5 deletions
|
|
@ -85,7 +85,7 @@ namespace MatterHackers.MatterControl
|
|||
}
|
||||
|
||||
// sort them by size
|
||||
object3DList.Sort(SortOnSize);
|
||||
object3DList.Sort(SortOnBigToLittle);
|
||||
|
||||
double ratioPerMeshGroup = 1.0 / object3DList.Count;
|
||||
double currentRatioDone = 0;
|
||||
|
|
@ -120,10 +120,10 @@ namespace MatterHackers.MatterControl
|
|||
}
|
||||
}
|
||||
|
||||
private static int SortOnSize(IObject3D x, IObject3D y)
|
||||
private static int SortOnBigToLittle(IObject3D a, IObject3D b)
|
||||
{
|
||||
AxisAlignedBoundingBox xAABB = x.GetAxisAlignedBoundingBox();
|
||||
AxisAlignedBoundingBox yAABB = y.GetAxisAlignedBoundingBox();
|
||||
AxisAlignedBoundingBox xAABB = b.GetAxisAlignedBoundingBox();
|
||||
AxisAlignedBoundingBox yAABB = a.GetAxisAlignedBoundingBox();
|
||||
return Math.Max(xAABB.XSize, xAABB.YSize).CompareTo(Math.Max(yAABB.XSize, yAABB.YSize));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 7834d4be42bdab27d48be505721c1cf4ba3d8dfe
|
||||
Subproject commit 20b80608ebe7c06b30feb2823e7f7224437f1259
|
||||
Loading…
Add table
Add a link
Reference in a new issue