开发者

How to calculate control points for cubic curve, which approximates an elliptic arc?

开发者 https://www.devze.com 2023-01-26 19:28 出处:网络
Almost all vector graphics applications (like Corel) approximate elliptic arcs with several cubic Bezier curves. I need to add similar functionality to my application. So my question is: h开发者_开发百

Almost all vector graphics applications (like Corel) approximate elliptic arcs with several cubic Bezier curves. I need to add similar functionality to my application. So my question is: h开发者_开发百科ow to calculate control points of that Bezier curve?


There are lots of pages explaining how to do this. This paper by Don Lancaster, for example, gives control parameters for divisions of an ellipse into between 2 and 8 cubic splines, with a detailed analysis of the 4-spline case.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号