Trying to intersect a cube with a line