The three-dimensional interaction of a supernova remnant with an interstellar cloud