Tightly pack 3D models.
First, install Go, set your GOPATH, and make sure $GOPATH/bin is on your PATH.
brew install goexport GOPATH="$HOME/go"export PATH="$PATH:$GOPATH/bin"
Next, fetch and build the two binaries.
go get github.com/fogleman/pack3d/cmd/pack3dgo get github.com/fogleman/pack3d/cmd/binpack
Note that pack3d runs until stopped, writing its output to disk whenever a new best is found.
```pack3d 2 3DBenchy.stl # tightly pack 2 boatspack3d 4 3DBenchy.stl # tightly pack 4 boatspack3d 1 *.stl # tightly pack various meshes, one of each
binpack 1 3DBenchy.stl 2 3DBenchy-x2.stl 4 3DBenchy-x4.stl```
113 3DBenchy tug boats packed tightly
27 R2-D2 droids, 8 parts each
git clone fogleman-pack3d_-_2017-06-22_00-20-36.bundle -b master