ScholarQuill logoScholarQuillUniversity Notes
My Semester
Explore Notes
Past Papers12 New
Video CoursesNew
Search
Settings
Study Tools
GPA/CGPA Calculator
Schedule & To-Do
Student Portal
Contact
Contact
ScholarQuill logo
My Semester
Explore Notes
Past Papers12 New
Video CoursesNew
Search
Settings
GPA/CGPA Calculator
Schedule & To-Do
Student Portal
Contact
ScholarQuill logoScholarQuillUniversity Notes
Study PortalITEC4128Ellipse And Other Curv…
Ctrl + K
Login
Explore
Search
Semester
Papers
CGPA
    ITEC4128

    Computer Graphics

    Progress0 / 15 done
    Topics15
    1Introduction to Computer Graphics2Graphics Systems3Point and Line Drawing Techniques4Circle Drawing Techniques5Ellipse and Other Curves62D Transformations7Clipping83D Concepts93D Transformations10Perspective Projection11Triangles and Planes12Triangle Rasterization13Lighting14Introduction to OpenGL15Animations
    4 min read
    Topic 5 of 15
    Topic Study Note Illustration
    05

    Ellipse and Other Curves

    In computer graphics, curves are used to create smooth and complex shapes such as circles, ellipses, and free-form designs.

    📘 Ellipse and Other Curves — Exam Notes


    🔹 1. Introduction

    In computer graphics, curves are used to create smooth and complex shapes such as circles, ellipses, and free-form designs.

    👉 After lines and circles, ellipse and curves are essential for drawing realistic objects.


    🔹 2. Ellipse

    ✔️ Definition

    An ellipse is a closed curve where the sum of distances from two fixed points (foci) is constant.


    ✔️ Equation of an Ellipse

    For center ((x_c, y_c)):

    [ \frac{(x - x_c)^2}{a^2} + \frac{(y - y_c)^2}{b^2} = 1 ]

    Where:

    • (a) = semi-major axis
    • (b) = semi-minor axis

    ✔️ Special Case

    • If (a = b), the ellipse becomes a circle

    ✔️ Symmetry of Ellipse

    • Ellipse has 4-way symmetry: [ (x, y), (-x, y), (x, -y), (-x, -y) ]

    👉 Only one quadrant needs to be calculated.


    🔹 3. Midpoint Ellipse Algorithm (Important)

    ✔️ Concept

    • Similar to midpoint circle algorithm
    • Uses decision parameter
    • Divides ellipse into two regions

    ✔️ Regions of Ellipse

    1. Region 1 (Slope > -1)

      • Move horizontally
    2. Region 2 (Slope < -1)

      • Move vertically

    ✔️ Initial Conditions

    [ x = 0,\quad y = b ]


    ✔️ Decision Parameters

    Region 1:

    [ p_1 = b^2 - a^2b + \frac{a^2}{4} ]

    Region 2:

    [ p_2 = b^2(x + 0.5)^2 + a^2(y - 1)^2 - a^2b^2 ]


    ✔️ Steps (Simplified)

    Region 1:

    1. Start from (0, b)

    2. If (p_1 < 0):

      • Move right → (x = x + 1)
    3. Else:

      • Move diagonally → (x = x + 1, y = y - 1)
    4. Update decision parameter


    Region 2:

    1. Continue until (y = 0)

    2. If (p_2 > 0):

      • Move down → (y = y - 1)
    3. Else:

      • Move diagonally → (x = x + 1, y = y - 1)

    ✔️ Advantages

    • Efficient
    • Uses integer arithmetic
    • Accurate

    🔹 4. Other Important Curves


    🔸 4.1 Parabola

    ✔️ Definition

    A parabola is a curve where each point is equidistant from a focus and a directrix.


    ✔️ Equation

    [ y^2 = 4ax \quad \text{or} \quad x^2 = 4ay ]


    ✔️ Applications

    • Satellite dishes
    • Reflectors

    🔸 4.2 Hyperbola

    ✔️ Definition

    A hyperbola is a curve formed by two separate branches.


    ✔️ Equation

    [ \frac{x^2}{a^2} - \frac{y^2}{b^2} = 1 ]


    ✔️ Features

    • Two open curves
    • Symmetric about axes

    🔸 4.3 Bezier Curves (Very Important)

    ✔️ Definition

    A Bezier Curve is a smooth curve defined by control points.


    ✔️ Key Idea

    • Curve does not necessarily pass through all control points
    • Used for smooth design

    ✔️ Formula (General)

    [ P(t) = \sum_{i=0}^{n} B_{i,n}(t) \cdot P_i ]

    Where:

    • (P_i) = control points
    • (B_{i,n}(t)) = Bernstein polynomials
    • (0 \le t \le 1)

    ✔️ Simple Example (Quadratic Bezier)

    3 control points:

    • Start point
    • Control point
    • End point

    ✔️ Applications

    • Fonts
    • Animation
    • Graphic design

    🔸 4.4 B-Spline Curves

    ✔️ Definition

    A B-Spline curve is a generalization of Bezier curves with better control.


    ✔️ Features

    • Smooth curves
    • Local control (changing one point affects only part of curve)

    🔹 5. Comparison of Curves

    Curve Type Shape Usage
    Circle Closed Wheels, shapes
    Ellipse Closed Orbits, designs
    Parabola Open Reflectors
    Hyperbola Open Scientific models
    Bezier Smooth Design, animation
    B-Spline Smooth Advanced modeling

    🔹 6. Diagram Descriptions

    ✔️ Ellipse

    • Draw oval shape
    • Label axes (a and b)

    ✔️ Parabola

    • U-shaped curve
    • Show focus and directrix

    ✔️ Bezier Curve

    • Draw 3–4 control points
    • Show curve passing near them

    🔹 7. Important Terms

    • Control Points: Points that guide curve shape
    • Focus: Fixed point used in curve definition
    • Directrix: Reference line
    • Parametric Curve: Defined using parameter (t)

    📝 Likely Exam Questions

    1. Define ellipse and write its equation.
    2. Explain midpoint ellipse algorithm.
    3. What are the regions in ellipse drawing?
    4. Define parabola and hyperbola with equations.
    5. Explain Bezier curves and their properties.
    6. Differentiate between Bezier and B-Spline curves.
    7. What is symmetry in ellipse drawing?
    8. Write short notes on different curves.

    ⚡ Quick Revision Summary

    • Ellipse equation: [ \frac{x^2}{a^2} + \frac{y^2}{b^2} = 1 ]

    • Uses 4-way symmetry

    • Midpoint ellipse algorithm has 2 regions

    • Parabola: (y^2 = 4ax)

    • Hyperbola: (x^2/a^2 - y^2/b^2 = 1)

    • Bezier curves use control points

    • B-Spline gives smoother and flexible curves


    ← Previous topic 4
    Circle Drawing Techniques
    Next topic 6 →
    2D Transformations

    Past Papers

    Open this section to view and download past papers

    Click on Show Past Papers to load available exam papers.

    Reading Progress
    0%
    4mremaining
    675words
    Beginnerlevel
    On This Page

    No headings found

    Study Toolkit

    Subject Portal

    Computer Graphics