http://en.wikipedia.org/wiki/Interpolation[^],

http://en.wikipedia.org/wiki/Smoothing_spline[^],

http://en.wikipedia.org/wiki/Spline_%28mathematics%29[^],

http://en.wikipedia.org/wiki/Spline_interpolation[^],

http://en.wikipedia.org/wiki/Discrete_spline_interpolation[^].

For implementation, for example, this CodeProject article: C# Cubic Spline Interpolation[^].

Need more? Please see: http://bit.ly/1I8rda8[^].

Every iteration of the inner, j loop, overwrites the preceding values in the x[i] and y[i] locations.

If the values you are using for the spline aren't what you think they are, then the resultant spline will not be what you expect.

Each iteration of the for (int j = ... loop assigns the different values of nv_data[j-1].positions[i].x to the

samex[i] location, overwriting the previous value there.Use the "Improve question" (above) to describe what you are trying to do and more people will be able to help.