assuming voxel size of 1 to simplify math