mirror of
https://github.com/davidmchapman/3DContainerPacking.git
synced 2025-05-21 00:48:32 +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)
|
if (smallestZ.CumZ + cboxz == smallestZ.Pre.CumZ)
|
||||||
{
|
{
|
||||||
smallestZ.CumX = smallestZ.CumX - cboxx;
|
smallestZ.CumX = smallestZ.CumX - cboxx;
|
||||||
itemsToPack[cboxi].CoordX = smallestZ.CumX - cboxx;
|
itemsToPack[cboxi].CoordX = smallestZ.CumX;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user