import txt files

90 views
Skip to first unread message

trigal

unread,
Jan 22, 2012, 6:48:36 PM1/22/12
to VoxCad
hi everybody

i found this program yesterday while i was looking for some program to
view and edit a voxel map generated by binvox (http://
www.cs.princeton.edu/~min/binvox/). the files generated from binvox
and parsed with read_binvox (http://www.cs.princeton.edu/~min/binvox/
binvox.html) creates files like this

#binvox ASCII data
dim 128 128 128
translate -1 -1 -1110.35
scale 1319.07
data
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 .....
1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0
0 .....
1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 1 1 1 1 1 1 1 0 0 01 1 1 1 1 1 1 1 1
1 .....

i tried to open the vxc files saved by voxcad (an xml file) and i
found the voxel lines compressed with zlib

do you think is a trivial operation modify the open routine of the
program in order to open (and save) in this binvox format? it's not
important to respect exactly the format of binvox, maybe just write/
read no-compressed data in the vxc

thank you,
augusto

Jon

unread,
Jan 22, 2012, 8:19:41 PM1/22/12
to vox...@googlegroups.com, tri...@gmail.com
Sure, no problem. if you go to file->export->alternate vxc->ascii it will save the vxc with uncompressed voxel data that should be easy to interpret.

reading and writing binvox files would be not too hard either if you are familiar with c++.

  ~Jon

Augusto Luis Ballardini

unread,
Jan 22, 2012, 8:46:33 PM1/22/12
to Jon, vox...@googlegroups.com
thank you jon! i was trying to install all the tools (vs2010+qt+...) to try to understand how do it, you saved me! :-)
augusto
Reply all
Reply to author
Forward
0 new messages