Attachment 32387
Hello every body,
I have attached a picture of a number of points. I need to connect the points smoothly, there should not be any sharp corners. Could any one tell me how that can be done?
Thanks in advance.
Printable View
Attachment 32387
Hello every body,
I have attached a picture of a number of points. I need to connect the points smoothly, there should not be any sharp corners. Could any one tell me how that can be done?
Thanks in advance.
One way would be to use LeGrange interpolation to create a smooth curve that passes through the points. See
http://web.cs.wpi.edu/~matt/courses/...ks/curves.html
http://en.wikipedia.org/wiki/Lagrange_polynomial
There are also several sites offering c/c++ implementations. See
https://www.google.co.uk/search?q=la...EOWI0AX1zoDYAw
for the above a "simple" interpolation like Lagrange will work.
there are other techniques that will work for less obvious sets of points. Such as bezier curves. (which is not the same as a bezier spline). Bezier typically needs additional parameters to define how "tight" the path needs to. (this is something Lagrange doesn't need, but it has deficiencies elsewhere).