joining two bezier curves

纵然是瞬间 提交于 2019-12-11 01:04:43

问题


i have two bezier curves placed at a distance apart in space. curve 1 has control points A0, A1,A2, A3. A0 and A3 lie on curve and are its end points Curve 2 has control points C0,C1, C2, C3 . C0 and C3 lie on curve.and are its end points

i want to join the two curves A and C with an intermediate bezier curve B. the intermediate Curve B has control points A3 and C0 which lie on the curve and are its end points. the intermediate control points B1 and B2 are unknown to me. also the joining should be smooth enough. please help as to how to proceed. have read alot about beziers but dont know how to do this. thanks and regards, Gauri


回答1:


B1 will be: B1x = 2 * A3x - A2x; B1y = 2 * A3y - A2y;

B2 will be: B2x = 2 * C0x - C1x; B2y = 2 * C0y - C1y;

This should give you perfectly smooth join.




回答2:


@Arty

You are correct but this will only assure a "smooth enough" join.

To achieve a better looking join of those 2 curves you must also have 2nd derivative equals at the junction points. I place this here for those that might need this piece of information.



来源:https://stackoverflow.com/questions/8989440/joining-two-bezier-curves

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!