Recognising three-dimensional objects