Surface Reconstruction Based on B-spline Functions and Its Application to Multiresolution Analysis