# Thread: B-Splines and NURBS questions

1. ## B-Splines and NURBS questions

Hi everyone.

Is this the forum to ask a question about B-Spline and NURBS calculations? I have a few question on some class problems I'm working on. I'm looking for information on how to take a set of (x,y) data and find the "best fit" curve using a B-Spline curve.

2. OK, here is my problem:

The following set of data is to be "best fit" using a quadric (degree=2) B-Spline. The number of control points to be used is 5. Since there are more data points compared to control points a least squares bit fit solution is requiredl Assume the data points will be assigned to parametric (u) values that are spaced evenly from 0 to 1.

a) Specify an approprate knot vector.
b) Specifiy u values (locations) where the data points will be assigned for the "best fit".
c) Determine the control point locations. Note data is 2D (x and y coordinates only) so the z component of the csn be considered as zero for all control points.
d) Plot the data points and the best fit B-Spline curve