Curve and Surface Fitting with Splines