The three-dimensional structure of a circumstellar maser