This question pertains to physics, but has to do with the math. In order to find the flux of an electric field you can put a sphere around it and use that to find flux, since the amount leaving is the same at every point. My teacher said that if you put a cube around the field/charge, you would get the same amount of flux, but it would be a much more difficult computation. My question is, is the flux the same because the sphere and the cube have the same topology? what happens if you put the field inside a torus? Would the amount of flux calculated be different?