I have a file with a list of (x,y,z) coordinates of points which I am attempting to convert into a voxel file format readable by viewvox. I have come across the binvox file format which seems like it should be relatively simple but I just can't get my head around it. In particular when it mentions the use of a value byte and a count byte I must have misunderstood because it is unclear to me why the range for count must be 1<=count<=255.
Hopefully somebody can do one or more of the following: explain the format to me like I am five years old, provide a working example of a binvox file for a small model or suggest a better way of converting my coordinate data to a voxelised format.
Thanks in advance for any advice.
EDIT: After thinking some more I've understood the range of the count byte - 1 is the minimum because a count of 0 would be uninformative and the maximum is 255 because that is the maximum value of a byte.