My Flash application receives B-spline data from an external application but the Flash drawing API only allows quadratic bezier curves using the Graphics#curveTo() method.
Is it possible to convert a B-spline into a series of curveTo() calls?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are multiple types of B-splines. Still, I imagine you will be splitting the B-spline into Bezier. You would iterate though the curve, and for each one you would traverse the points with a certain detail to be able to draw the curve from lines.
Here’s a quick snippet:
Have a look at Paul Tondeur’s Drawing a cubic curve blog entry and the references there as well.
HTH