Voxelize 3D Model

Hi everybody,

I’m having some troubles to understand how to voxelize my 3D mesh , stored into a .obj file. I’ll explain it better : i have to import my 3D mesh (.obj file) and voxelize it to manipulate them directly.
An example : i need to accede a voxel which coordinates in the space are x,y,z and , for that voxel , calculate the distance from one of its neighbor. In other words , i have to simply handle voxels for simple computes.

Is there a way to do that ? (for who was interested , i have to calculate a distance transform to obtain skeletonization on voxel images , precisely).

Thanks in advance for your attention