revised code to correct ray calculation that uses boundaries instead of voxel centers as we were expecting