3DContainerPacking
3DContainerPacking copied to clipboard
Dealing with floats.
Sometimes one of the dimension of a box could be, say, 2 1/4", which translates into 2.25" In order to avoid dealing with floats, I move the decimal point two places to the right. When that happens the algorithm returns very weird results. It's like the algorithm was not designed to deal with numbers like 375 (3 3/4"), 713 (7 1/8").
If I change the dimensions to 4" and 7" the packing is smoother. Has anyone here dealt with this issue?