# Accurately interpolating more Data points for a bump profile

Hughezy
Hi there,

I require some advice on how to interpolate more data points on a bump profile. Basically i have a curve defined be twentyfive (x,y) data points. The bump is meant to accurately represent half of an aerofoil. I would like to accurately interpolate more data points (lets say up to 50) so that i can generate a smoother curve in my computer simulation.
The bump geometry profile it:

x y
-1.5 , 0
-1.4 , 0.002
-1.2 , 0.014
-1 , 0.044
-0.8 ,0.099
-0.6 , 0.178
-0.4 , 0.257
-0.3, 0.2835
-0.2 , 0.31
-0 , 0.331
0.2 , 0.325
0.35 , 0.308
0.4 ,0.3
0.6 ,0.258
0.63 ,0.251
0.8 ,0.207
0.9 ,0.181
1 ,0.155
1.2 ,0.103
1.24 ,0.093
1.4 ,0.058
1.58 ,0.031
1.6 ,0.027
1.8 ,0.006
2 ,0

I do not know what type of function this is wheter its quadratic or cubic etc....

Any asistance would be greatly apreciated.

Hey Hughezy and welcome to the forums.

For interpolation, there are quite a number of techniques available.

The simplest is the Lagrange Interpolation formula which generates an n+1th degree polynomial for n data points, but if you want more control over the actual interpolation model you will need something a bit more developed, and for that you should check out BSPLINES.

http://en.wikipedia.org/wiki/Lagrange_polynomial

http://en.wikipedia.org/wiki/B-spline

In terms of calculating these, you can use standard numerical platforms like MATLAB or something like Octave which is free, and then get some coded routines to generate the right data structures with all the information for that model.

If you have MATLAB, then a google search returns this:

http://www.mathworks.com/matlabcentral/fileexchange/27047-b-spline-tools

This kind of stuff is a big topic in 3D animation and games design, so the relevant literature in this area (i.e. computer graphics) should have more information if you wish to dig deeper (as well as certain areas of applied mathematics).

Hughezy
Hi Chiro,