Escolar Documentos
Profissional Documentos
Cultura Documentos
Output Primitives
Unit 1: Ellipse Generating Algorithm
Dr.M.Manimaran,
Associate Professor,
Department Computer Science,
SKACAS
oefqdki - Graphics & Multimedia Unit I Output Primitives 1
Computer Science III B.Sc CS Sem : VI Year 2019 - 2020
Lecture Agenda
• Circle Generating Algorithms
– Properties of Circles
– Bresenham’s Algorithm
– 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 Bresenham’s Algorithm
• To understand the concepts of Mid-Point Algorithm
Lecture Agenda
• Ellipse Generating Algorithms
– Properties of Ellipse
– Mid-Point Algorithm
Algorithm
Algorithm
Algorithm
Example
• Given input ellipse parameters rx =8 and ry = 6, we
illustrate the steps in the midpoint ellipse algorithm
by determining raster positions along the ellipse path
in the first quadrant.
• Initial values and increments for the decision
parameter calculations are
Example
• For region 1, the initial point for the ellipse centered
on the origin is (x0, y0) = (0, 6), and the initial
decision parameter value is
Example
Example
• We now move out of region 1, since
2r 2 y x > 2r 2 x y.
• For region 2, the initial point is
(x0, y0) = (7, 3)
• and the initial decision parameter is
Example
• The remaining positions along the ellipse path in the
first quadrant are then calculated as
Example
• A plot of the calculated positions for the ellipse
within the first quadrant is shown bellow:
Key Points
• Mid point ellipse algorithm
VIDEO URL
https://www.youtube.com/watch?v=CrfxZ7mj8Wg
https://www.sanfoundry.com/computer-graphics-
mcqs-line-filling-algorithms/
Next Lecture
Attributes of Output Primitives –
Line Attributes
DISCUSSIONS