Reconstruction of surfaces from planar contours through contour