1.5 CIRCLE GENERATING - Output Primitive
1.5 CIRCLE GENERATING - Output Primitive
Output Primitives
Unit 1: Circle Generating Algorithm
Dr.M.Manimaran,
Associate Professor,
Department Computer Science,
oefqdki - Graphics & Multimedia
SKACAS
Unit I Output Primitives 1
Computer Science III B.Sc CS Sem : VI Year 2019 - 2020
Lecture Agenda
• Circle Generating Algorithms
– Properties of Circles
– Mid-Point Algorithm
EXPECTED OUTCOME
After studying this class, you should be able
to:
• To understand the concepts of Circle
Generating Algorithms
• To understand the concepts of Properties of
Circles
• To understand the concepts of Mid-Point
Algorithm
• For any circle point (x, y), this distance is expressed by the
Equation
(x − xc)2 + (y − yc)2 = r 2
• We calculate the points by stepping along the x-axis in unit
steps from xc-r to xc+r and calculate y values as
• Efficient Solutions
– Midpoint Circle Algorithm
• The circle function tests in (3) are performed for the mid
positions between pixels near the circle path at each
sampling step.
• Thus, the circle function is the decision parameter in the
midpoint algorithm, and we can set up incremental
calculations for this function as we did in the line
algorithm.
Algorithm
Example
• Given a circle radius r = 10, we demonstrate the
midpoint circle algorithm by determining positions
along the circle octant in the first quadrant from x = 0
to x = y .
• The initial value of the decision parameter is
Example
• For the circle centered on the coordinate origin, the
initial point is (x0 , y0) =(0,10), and initial increment
terms for calculating the decision parameters are
Example
Example
• A plot of the generated pixel positions in the first
quadrant is shown in Figure 5.
Key Points
• Properties of Circles
• Symmetry of a circle
• Midpoint Circle Algorithm
Next Lecture
• Ellipse-Generating Algorithms
One marks
1)A circle is defined as the set of points that are all at a
given distance r from a center point________
One marks
2) As in Bresenham’s line algorithm, the midpoint
method calculates pixel positions along the _______
One marks
3) Successive decision parameters are obtained
using________
VIDEO URL
https://www.youtube.com/watch?v=yfLm9nXsCv
w
https://www.sanfoundry.com/computer-graphics-
mcqs-line-filling-algorithms/
Next Lecture
Attributes of Output Primitives
DISCUSSIONS