G1 continuity of B-spline surface patches in reverse engineering