keremdemirer / 3dbinpackingjs

javascript conversion of https://github.com/wknechtel/3d-bin-pack/
83 stars 26 forks source link

Working with float numbers #8

Closed luenib closed 11 months ago

luenib commented 1 year ago

Perhaps more of a limitation than an issue. The problems is that when I set float numbers for the dimensions (say, 2.25 when the dim is 2 1/4") the algorithm performs quite poorly. I have tried to eliminate floats by moving the period to the right, so instead of 2.25 the algorithm would be working with 225, but the results are still weird.

Has anyone here dealt with this issue?