I wanna make a program that draws an airfoil given a number of point (eg 20 points on the airfoil)

How can I program a SMOOTH line through these points?

I tried to find the line y = 1 + x + x**2 + x**3 ....
via the Reduced Row echelon Form of a matrix, but it is not a good option.
Who is Participating?
_lychee_Connect With a Mentor Commented:
You can find lots of information about the B-spline (I don't know the exact algorithm) which paints a smooth line using a set of control points. It does not have to pass through these points, however. I don't know if that is what you need...?
de_wagterAuthor Commented:
Sounds great:

Just need an algorithm to draw a smooth line through a set of points. (to draw an airfoil)
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

de_wagterAuthor Commented:
where do I find info about this B-spline?
de_wagterAuthor Commented:
B-spline does not go through the given points,

do you know any other that does ??
Almost no algorithm make the curve to touch control points (in fact, the smoothing process means that a bit). If you have a curve with these (numbered) points, it's impossible to draw an INNER curve (this is, not going BEYOND control points), as a Spline curve does, which touches all four points:

          2 .
1 .                4 .
     3 .
de_wagterAuthor Commented:
it should not be an inner curve at all. That's what the B-Spline does. This means that our airfoils would become smaller than they should be.
de_wagterAuthor Commented:
Perfect, that's exactly what I was looking for.

Now I just have to write some code who does the thing, and it might not be easy,
anyway: thanx for the link
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.