Fit icon indicating copy to clipboard operation
Fit copied to clipboard

Demo fails when multiple bins are required

Open gene-ressler opened this issue 2 months ago • 0 comments

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.

gene-ressler avatar Oct 29 '25 05:10 gene-ressler