1
\$\begingroup\$

How can I do that? I can generate simple beziers, but how can I generate a closed curve like this:

http://www.youtube.com/watch?feature=endscreen&NR=1&v=hlDYJNEiYvU

\$\endgroup\$
0

1 Answer 1

6
\$\begingroup\$

Just Google closed bezier curve, there are plenty of useful results, including one that has a code example It's just like a open bezier curve, but for the "next" point on your last point, you use the first point.

\$\endgroup\$
1
  • \$\begingroup\$ This code example is doing something that has no sense. You can't just equate second derivatives of two parametric curves because their parameters are not related. It's like equating miles and nanometers. \$\endgroup\$
    – facetus
    Apr 2, 2022 at 3:11

You must log in to answer this question.

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