Maybe some one can give me a little guidance on this.
I have used bezier curve in the past and can produce a bezier curve providing the start point and end point of the line, as well as the points for the handle(s).
But what I can not figure out, is if I draw with mouse or finger a curve or s-curve on screen, how to calculate the points for the handle(s), needed to redraw bezier curve.
I capture all the points that the draw-event picks up as curve is drawn, but those are just the points along the path of the line. Because the hand-drawn curve is often a bit choppy, I plan to use the capture points re-draw the line smoothly… after 3 days I spent reviewing tuts and posts on the forum, the best I can figure is I will need to calculate where the ‘handles’ will be based on how the drawn-line curves about the screen. Once i can calculate those I can re-draw the line using bezier code to make it smooth.
Any ideas on how I could call a function, passing in the table of points collected when the line was drawn, and have the function calculate where ‘handle(s)’ would be placed?
I have looked over a lot of posts and tuts about bezier curve, but none I could see helped me resolve my question.
Thanks
Bob