25 ms·
I have a question. How does one make a perfect circle using Bezier curves?
by amelius 11y ago
I have a question. How does one make a perfect circle using Bezier curves?
- jacobolus 11y agoYou can’t. However, if you add enough segments you can get arbitrarily close.
- amelius 11y agoThis also holds for straight line segments :)
- jacobolus 11y agoIndeed. It also holds for points only connected by horizontal or vertical lines. Or even for sets of disconnected points. :-) However, you need a lot fewer parametric cubic segments than straight lines to get to any desired tolerance.
- agumonkey 11y agoReminds me that I did this on a geometry assignment. All shapes were n-gones. Circle = ngon<64>. Here you go.
- TheRealPomax 11y agoAs per jacob's comment - you can't, http://pomax.github.io/bezierinfo/#circles_cubic http://pomax.github.io/bezierinfo/#circles_cubic covers the "how close do you want to get" part of circle approximation.
- wmu 11y agoAs other said it's not possible with polynomial curves, but you can get good approximation. Only rational curves can form arcs. Wikipedia has a nice explanation https://en.wikipedia.org/wiki/Non-uniform_rational_B-spline#Example:_a_circle https://en.wikipedia.org/wiki/Non-uniform_rational_B-spline#...