logoalt Hacker News

Simple 3D Packing

46 pointsby matroidlast Saturday at 8:21 AM9 commentsview on HN

Comments

matroidlast Saturday at 8:21 AM

A while back, I implemented a paper that had showed up on HN for a course project (Dense, Interlocking-Free and Scalable Spectral Packing of Generic 3D Objects).

Over the holidays, I cleaned up the implementation (with the help of Claude Code, although this is not an advertisement for it) and released it on GitHub.

If anyone needs fast 3D packing in python, do give this a shot. Hopefully I have attributed all the code/ideas I have used from elsewhere properly (if not, please feel free to let me know).

show 1 reply
avidiaxyesterday at 8:31 PM

Much too hard to find the original paper: https://dl.acm.org/doi/epdf/10.1145/3592126

One question I have, is when we say "interlocking-free", does this mean that the algorithm can still densely stack cups (with a draft angle), or is it instead guaranteeing that the convex hull of shapes are non-interfering?

Koffiepoederyesterday at 11:37 PM

Interesting, this is the first time I've come across using a FFT for collision detection, and now that I think about it it really makes sense. Thanks for the insight!

hermitcrabyesterday at 9:45 PM

I'm old enough to remember when 2D packing was considered a hard problem.

show 1 reply