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:

how find control points beziersegment given start, end, , 2 intersection pts in c# - aka cubic bezier 4-point interpolation


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -