Thanks for the code. My application needs different object in the .obj file to be distingishable after voxelization. To give an example to make the problem more clear: Say that there is a glass filled with water as 3D model and I saved this as an .obj file. So in the .obj file Glass is one object and water inside is another object (which is a cylinder in fact). After voxelization I want to get a 3D matrix saying either 'G' for glass or 'W' for water and 'A' for air, in its cells.
Is there a way to achieve this using your code? Does your code handles different objects in the .obj file seperately?
First thanks for your convertor, I was looking for such a thing for a long time.
But this doesn't work un unclosed objects. I read the comments inside m file, it seems that its not possible to do this, I just want to know is there any way to work on unclosed objects too?