Convert .obj to voxels
- install rust
cargo install --git https://github.com/mariogeiger/obj2voxel
generate a 64x64x64 voxel grid and save it into numpy format
obj2voxel --size 64 diamond.obj output.npy
generate voxel grid and visualize it requires to compile with cargo install --features "viewer"
obj2voxel --size 16 diamond.obj --view
cargo build --features viewer
cargo run --features viewer -- --size 16 diamond.obj --view