How to make voxels?

I am a student, beginner in Geant4. I have to do a simulation on dose kernels in geant4. So I’m using example B1 but I don’t know how to create voxels from my geometry.
Can anyone help me ?
A second question is: can we use mesh grid to voxelize a volume? and if so how to do it?