c++ - Question about how to general a bezier curve by inputing several points -
i want generate bezier curve pass through several points input mouse.these points more four,can me , give me suggestions how implent it? more thanks. luck!
you have solve distance between points along curve first u & v.
generally, shortest arc lengths between points approx. best curve.
p0 , p3 endpoints; f , g 2 points along curve.
d1 distance between p0 , f; d2 between f , g; d3 between g , p3.
solving control points, p1 , p2:
let u=d1/(d1+d2+d3); v=(d1+d2)/(d1+d2+d3)
this link to:
Comments
Post a Comment