A fast algorithm for surface reconstruction from planar contours using tensor product splines