Solved

# deCastleJau Bezier curves in OpenGL

Posted on 2002-04-16

Somebody please have mercy on me. I have an assignment that asks the following:

Implement the deCastleJau Algorithm for Bezier curves. You must use OpenGL function calls for line drawing to approximate the curves.

Your program must draw and display an approximation of the following shapes using cubic Bezier curves and using two different levels of subdivision, rough and smooth.

1. 4 Concentric Circles of radius r, 2r, 3r, 4r. Pick a reasonable value for r.

2. An outline of the letter Q.

3. The fuction y = sin((Pi)x)/(Pi)x

with {x: -2.0, 2.0}

4. A crude animal or fungus of your choosing.

Like I said in the first statement - somebody please have mercy on me and tell me how to code this in C.