Skip to content

Python module to read and write .binvox files, Contributions come from dimatura/binvox-rw-py. Fixed some bugs and packaged them into installable Python packages。

License

Notifications You must be signed in to change notification settings

wangqiang9/binvox_rw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

binvox_rw

Python module to read and write .binvox files, Contributions come from dimatura/binvox-rw-py. Fixed some bugs and packaged them into installable Python packages。

Install

git clone [email protected]:wangqiang9/binvox_rw.git
cd binvox_rw
pip install .

Example

example

>>> import binvox_rw
>>> with open('./data/model.binvox', 'rb') as f:
...     model = binvox_rw.read_as_3d_array(f)
>>> model.dims
[32, 32, 32]
>>> model.scale
41.133000000000003
>>> model.translate
[0.0, 0.0, 0.0]
>>> model.data

Convert to video

pip install matplotlib
pip install moviepy
python convert_to_video.py

Datasets Download

https://shapenet.org/

About

Python module to read and write .binvox files, Contributions come from dimatura/binvox-rw-py. Fixed some bugs and packaged them into installable Python packages。

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages