Advertisement

bezier spline math

Started by February 02, 2003 03:29 PM
2 comments, last by Steffen75 22 years ago
Hello, may anyone tell me how I can get the corresponding y value from a given x value of an 2D bezier curve. As explanation you find this graph. http://www.Behr-Bros.de/usf/xsi_bezier.jpg There is also the problem how to convert a 3D nurbs curve into a 3D bezier curve. Examples: Nurbs: http://www.Behr-Bros.de/usf/nurbs.jpg Bezier: http://www.Behr-Bros.de/usf/bezier.jpg thx Steffen
Since Bezier curves and NURBS are parametric functions, the x/y values depend on a time step.
So you compute x and y values by x = fx(t) (t ranging 0..1)
and y = fy(t).
There is no y = f(x) and thus no x = f-1(y).

Advertisement
You can use the quadratic formula to find the values, if any, at which the bezier takes on a given value of x. That may be zero, one or two values of t. You can then use that/those value(s) of t to find the corresponding y(s).
Keys to success: Ability, ambition and opportunity.
quote:
Original post by LilBudyWizer
You can use the quadratic formula to find the values, if any, at which the bezier takes on a given value of x. That may be zero, one or two values of t. You can then use that/those value(s) of t to find the corresponding y(s).

I forgot that there''s not only a direct way

This topic is closed to new replies.

Advertisement