1. A method of determining similarity between a non-planar probe surface represented by a probe point-cloud and a non-planar model surface represented by a model point-cloud, the method comprising: calculating a extremal value of an objective function describing embedding of said probe surface into an embedding space having a non-constant sectional curvature; and determining similarity between the probe surface and the model surface based on said extremal value.