Is there a way to discretize a Graphics3D object using a regular lattice with a given lattice spacing. For example:
Graphics3D[Sphere[3], PlotRange -> {{-5, 5}, {-5, 5}, {-5, 5}}]
I'd like 1s for lattice points lying in the sphere region and 0s for everything outside. For a lattice spacing of 1, I would expect 111111 points.