Fit
Fit copied to clipboard
Demo fails when multiple bins are required
I cloned the repo, installed npms, ran npm run dev.
The resulting local demo gives bad result for bins small enough to require several. For example, 200 wide and 400 high, separation 5. The first bin is well-packed, but the rest usually aren't. In most cases, they have only 1-3 polygons even when more would obviously fit. In some re-runs, unpacked polygons remain at the end. In others, polygons disappear completely.
It smells like a concurrency problem with the workers, but I'm not sure where to start debugging.
The on-line demo on github gets consistently good results for the same case. Is that running the same code?
What am I doing wrong?
Thanks.