mirror of
https://github.com/davidmchapman/3DContainerPacking.git
synced 2025-05-17 23:16:24 +08:00
fixes nearly 20-year-old bug in EB-AFIT packing algorithm
This commit is contained in:
@ -938,7 +938,7 @@ namespace CromulentBisgetti.ContainerPacking.Algorithms
|
||||
if (smallestZ.CumZ + cboxz == smallestZ.Pre.CumZ)
|
||||
{
|
||||
smallestZ.CumX = smallestZ.CumX - cboxx;
|
||||
itemsToPack[cboxi].CoordX = smallestZ.CumX - cboxx;
|
||||
itemsToPack[cboxi].CoordX = smallestZ.CumX;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user