Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 609 Bytes

README.md

File metadata and controls

28 lines (20 loc) · 609 Bytes

obj2voxel

Convert .obj to voxels

Install

  1. install rust
  2. cargo install --git https://github.com/mariogeiger/obj2voxel

Usage

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

Build from source

cargo build --features viewer
cargo run --features viewer -- --size 16 diamond.obj --view