Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

I am designing an algorithm that generates shapes of bezier curves. Each output are control points for a single curve.

In some cases, it should return a circle. Which control points does the algorithm have to output for the shape to become a circle?

share|improve this question
    
Closely related to these two questions: math.stackexchange.com/questions/271319/… and math.stackexchange.com/questions/449035/… –  bubba Apr 17 at 6:28

2 Answers 2

up vote 4 down vote accepted

Is not possible draw a perfect circle with Bézier curves, but the approximation is good enough. See How to create circle with Bézier curves? and Approximate a circle with cubic Bézier curves.

share|improve this answer
2  
+1 for Rational Bézier curves it is possible though. –  Peter Sheldrick Apr 15 at 6:41
    
Well, isn't surprising because the circle has a rational parametrization: mathnow.wordpress.com/2009/11/06/…. –  Martín-Blas Pérez Pinilla Apr 15 at 7:18
1  
Martín, yes this goes by various names, in German 'Weierstrass substitution' is semi-well used, but in English there are other names as well. –  Peter Sheldrick Apr 15 at 7:41

Without using rational Bezier curves, drawing a circle is impossible. I remember I had to prove that once for some class I had, and the proof isn't pretty.

However, drawing the circle using rational bezier curves is quite easy, as I recall. Take the points $(1,0)$, $(1,1)$ and $(0,1)$ and weights $1,\frac{\sqrt2}{2}, 1$ (I'm not sure, the middle weight may also be $\sqrt2$) and you get a circle.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.