Simple 3D Packing

(github.com)

18 points | by matroid 2 days ago ago

4 comments

  • matroid 2 days ago ago

    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).

    • jukea a day ago ago

      The problem sounds very interesting and a complex one to solve. Could give examples of use cases where dense 3d packing is needed? (Say, besides literal packing of physical objects in a box? )

      • RaftPeople a day ago ago

        > Could give examples of use cases where dense 3d packing is needed? (Say, besides literal packing of physical objects in a box? )

        Not an answer, but something interesting on this topic:

        In a warehouse/distribution center, a dense packing result can be too time consuming for most consumer products. As density increases, it takes the human longer to find their own solution rapidly that works. You can provide instructions but that is even slower than the human just doing their best via trial and error.

        We had to dial back our settings from about a 95% volume consumption percent (initial naive setting) down to about 80% before they could rapidly fill the cartons. Basically it's balancing cost of labor vs capacity of system during peak (conveyor would start backing up) vs shipping costs.

      • phil-martin a day ago ago

        The main one I could think of was maximising 3D printer utilisation, I.e if filling your print volume was something you wanted to optimise for.