7
\$\begingroup\$

What is the best way to create a smooth curve path from a set of points? For example:

Smooth curve path through points

I've seen Bezier curves before, but those try to smooth out the path from the set of points, like this:

Bezier curve

\$\endgroup\$
7
\$\begingroup\$

There are multiple types of Splines, Bezier curves are one of them. Beziers aren't required to pass through the points that define them. From the looks of it, you want a regular cubic spline. It will ensure that the line crosses through the points specified. You can find some interactive examples of different types here.

Also, I know you're busy being an 80's guy, but get that boneitis checkout ASAP.

\$\endgroup\$
1
  • 2
    \$\begingroup\$ That has the slick, dazzling veneer of the 1980s. I'll get my boneitis checked out when I'm done being an 80s guy. \$\endgroup\$
    – Darkenor
    Oct 9 '12 at 18:53
2
\$\begingroup\$

You may want Catmull-Rom splines. They go through every point (unlike Bezier curves, which don't go through the control points).

\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .