Bresenham’s-Algorithm

Question 1
Below are the few steps given for scan-converting a circle using Bresenham’s Algorithm. Which of the given steps is not correct ?
A
Compute d = 3 – 2r (where r is radius)
B
Stop if x > y
C
If d < 0, then d = 4x + 6 and x = x + 1
D
If d ≥, then d = 4 * (x – y) + 10, x = x + 1 and y = y + 1
Question 1 Explanation: 
Scan converting a circle using Bresenham’s algorithm:
1 Initially X = 0 , Y = R and D = 3 – 2R

2. While (X < Y)

3. Call Draw Circle(Xc, Yc, X, Y)

4. Set X = X + 1

5. If (D < 0) Then

6. D = D + 4X + 6

7. Else

8. Set Y = Y – 1

9. D = D + 4(X – Y) + 10

10. End If

11. Draw Circle(Xc, Yc, X, Y) /* calling function call */

12. End While
There is 1 question to complete.

Access quiz wise question and answers by becoming as a solutions adda PRO SUBSCRIBER with Ad-Free content

Register Now

If you have registered and made your payment please contact solutionsadda.in@gmail.com to get access