Global non-rigid alignment of 3-D scans