https://github.com/fogleman/pack3d
Tightly pack 3D models.
https://github.com/fogleman/pack3d
3d 3d-printing go packing-algorithm
Last synced: 23 days ago
JSON representation
Tightly pack 3D models.
- Host: GitHub
- URL: https://github.com/fogleman/pack3d
- Owner: fogleman
- License: mit
- Created: 2017-06-07T17:50:04.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-06-06T06:21:59.000Z (almost 3 years ago)
- Last Synced: 2025-03-31T10:04:12.748Z (about 1 month ago)
- Topics: 3d, 3d-printing, go, packing-algorithm
- Language: Go
- Homepage: https://www.michaelfogleman.com/pack3d/
- Size: 13.7 KB
- Stars: 330
- Watchers: 14
- Forks: 48
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# pack3d
Tightly pack 3D models.
### Installation
First, install Go, set your GOPATH, and make sure $GOPATH/bin is on your PATH.
```
brew install go
export GOPATH="$HOME/go"
export PATH="$PATH:$GOPATH/bin"
```Next, fetch and build the two binaries.
```
go get github.com/fogleman/pack3d/cmd/pack3d
go get github.com/fogleman/pack3d/cmd/binpack
```### Usage Examples
Note that pack3d runs until stopped, writing its output to disk whenever a new best is found.
```
pack3d 2 3DBenchy.stl # tightly pack 2 boats
pack3d 4 3DBenchy.stl # tightly pack 4 boats
pack3d 1 *.stl # tightly pack various meshes, one of each# pack as many boats as possible into the printer volume, given a few different arrangements
binpack 1 3DBenchy.stl 2 3DBenchy-x2.stl 4 3DBenchy-x4.stl
```### Examples
113 3DBenchy tug boats packed tightly

27 R2-D2 droids, 8 parts each
