Progressive and iterative approximation for least squares B-spline curve and surface fitting