# Converting a mesh to voxels

Is it possible to convert a mesh into a voxel image?

This operation would make white voxels inside the mesh, and black voxels outside the mesh, and would either:

1. write a standard 3D image file format, or just a raw voxel dump; or
2. create a stack of 2D images in each axis
• a script would be the better solution but you can use dynamic paint : animate a plane ( the canvas with high dry speed) to go through the mesh ( the brush ) then bake the image sequence Jun 29 '15 at 15:58
• I'm fluent in Python but have never made the dive into learning bpy. This is just a once off operation for me, so I'd rather not spend the time scripting. I'll see if I can figure out your dynamic paint suggestion. Jun 29 '15 at 16:00
• I didn't try, but there is this thread (though OP there asked about .obj, but still maybe some general usage) Jun 29 '15 at 16:03
• @Chebhou the dynamic paint solution worked well. Want me to add it as an answer? Jun 29 '15 at 16:43
• @ajwood of course, go ahead Jun 29 '15 at 16:46