CS 450: COMPUTER GRAPHICS REVIEW: DRAWING ELLIPSES AND OTHER CURVES SPRING 2015 DR. MICHAEL J. REALE.

Slides:



Advertisements
Similar presentations
Liceo Scientifico “G.Ferraris” Taranto Maths course
Advertisements

CS 450: COMPUTER GRAPHICS DRAWING ELLIPSES AND OTHER CURVES SPRING 2015 DR. MICHAEL J. REALE.
CS 376 Introduction to Computer Graphics 02 / 02 / 2007 Instructor: Michael Eckmann.
Chapter 7 Analyzing Conic Sections
Section 11.6 – Conic Sections
Section 9.1 The Ellipse. Overview Conic sections are curves that result from the intersection of a right circular cone—think ice cream cone—and a plane—think.
Section 1.1 The Distance and Midpoint Formulas. x axis y axis origin Rectangular or Cartesian Coordinate System.
10.1 Conics and Calculus. Each conic section (or simply conic) can be described as the intersection of a plane and a double-napped cone. CircleParabolaEllipse.
Circle Drawing algo..
Conic Sections. (1) Circle A circle is formed when i.e. when the plane  is perpendicular to the axis of the cones.
CGMB214: Introduction to Computer Graphics
1 CS 430/536 Computer Graphics I Circle Drawing and Clipping Week 3, Lecture 6 David Breen, William Regli and Maxim Peysakhov Geometric and Intelligent.
WHERE TO DRAW A LINE?? Line drawing is accomplished by calculating intermediate positions along the line path between specified end points. Precise definition.
Questions over Assignment  3R- One more thing we need to do on 8, 9, & 10.
9.1.1 – Conic Sections; The Ellipse
10.3 Hyperbolas. Circle Ellipse Parabola Hyperbola Conic Sections See video!
SECTION: 10 – 3 HYPERBOLAS WARM-UP
CHAPTER 9 CONIC SECTIONS.
Slide 5- 1 Copyright © 2006 Pearson Education, Inc. Publishing as Pearson Addison-Wesley.
9.1 Conic Sections Conic sections – curves that result from the intersection of a right circular cone and a plane. Circle Ellipse Parabola Hyperbola.
1 Circle Drawing Algorithms Pictures snagged from
What is the standard form of a parabola who has a focus of ( 1,5) and a directrix of y=11.
Graphics Output Primitives
ELLIPSE GENERATING ALGORITHMS 1. DEFINITION Ellipse is an elongated circle. Elliptical curves can be generated by modifying circle-drawing procedures.
Review Day! Hyperbolas, Parabolas, and Conics. What conic is represented by this definition: The set of all points in a plane such that the difference.
Conics A conic section is a graph that results from the intersection of a plane and a double cone.
MIDPOINT CIRCLE & ELLIPSE GENERARTING ALGORITHMS
Conics can be formed by the intersection
Section 7.3 – The Ellipse Ellipse – a set of points in a plane whose distances from two fixed points is a constant.
Slide Copyright © 2006 Pearson Education, Inc. Publishing as Pearson Addison-Wesley.
Conic Sections Advanced Geometry Conic Sections Lesson 2.
Midpoint Circle Algorithm
CS 325 Introduction to Computer Graphics 02 / 03 / 2010 Instructor: Michael Eckmann.
Conics Review Study Hard!. Name the Conic without graphing and write it in standard form X 2 + Y 2 -4Y-12=0.
SECTION: 10-2 ELLIPSES WARM-UP
Conic Sections.
Conic Sections The Parabola. Introduction Consider a ___________ being intersected with a __________.
 You probably know the ellipse by its more well-known name: the oval.  An ellipse looks like a circle that has been stretched out.
Conic Sections There are 4 types of Conics which we will investigate: 1.Circles 2.Parabolas 3.Ellipses 4.Hyperbolas.
Conics, Parametric Equations, and Polar Coordinates Copyright © Cengage Learning. All rights reserved.
Distance The distance between any two points P and Q is written PQ. Find PQ if P is (9, 1) and Q is (2, -1)
Making graphs and using equations of ellipses. An ellipse is the set of all points P in a plane such that the sum of the distance from P to 2 fixed points.
Conics. Conic Sections - Definition A conic section is a curve formed by intersecting cone with a plane There are four types of Conic sections.
Date: 9.1(a) Notes: The Ellipse Lesson Objective: Graph and write the equa- tions of ellipses in standard form. CCSS: G.GPE.3 You will need: colored pens.
Computer Graphics Lecture 07 Ellipse and Other Curves Taqdees A. Siddiqi
Computer Graphics Lecture 06 Circle Drawing Techniques Taqdees A. Siddiqi
Conics A conic section is a graph that results from the intersection of a plane and a double cone.
10.1 Conics and Calculus.
CONIC SECTIONS.
Chapter 10 Conic Sections
Conics A conic section is a graph that results from the intersection of a plane and a double cone.
Conics A conic section is a graph that results from the intersection of a plane and a double cone.
Analyzing Conic Sections
Lecture 05: Mid-point Ellipse algorithm Dr. Manal Helal – Fall 2014
6-3 Conic Sections: Ellipses
6.2 Equations of Circles +9+4 Completing the square when a=1
Conic Sections College Algebra
Conic Sections Anyway you slice it.
Circles, Ellipses, Hyperbolas & Parabolas
Scan Conversion of Circles
Hyperbolas 4.4 Chapter 10 – Conics. Hyperbolas 4.4 Chapter 10 – Conics.
Chapter 9 Conic Sections.
Section 10.2 – The Ellipse Ellipse – a set of points in a plane whose distances from two fixed points is a constant.
Ellipses Ellipse: set of all points in a plane such that the sum of the distances from two given points in a plane, called the foci, is constant. Sum.
Analyzing Conic Sections
4-2 Parabolas.
Chapter 1 Test Review.
Section 11.6 – Conic Sections
What are Conic Sections?
Chapter 7 Analyzing Conic Sections
Presentation transcript:

CS 450: COMPUTER GRAPHICS REVIEW: DRAWING ELLIPSES AND OTHER CURVES SPRING 2015 DR. MICHAEL J. REALE

OVERVIEW OF DRAWING CURVES Explicit form  y = f(x) Parametric form  y = f(s), x = g(s) Implicit form  F(x,y) = 0 Two approaches: Use explicit or parametric form  approximate curve with line segments Parametric form  evenly-spaced points along curve path Can connect points OR use best-fitting line Use implicit form  derive incremental midpoint method Take advantage of any curve symmetry

ELLIPSES Symmetric only for quadrants Circles  symmetric in all octants Equations: Two foci  for point on ellipse, sum of distances from foci is constant: General ellipse equation: Axis-aligned (standard) ellipse: Two axes: Major axis = line passing through both foci Minor axis = line perpendicular to major axis Semimajor/semiminor axes  radii aligned with major/minor axes, respectively llipse_via_two_tacks_a_loop_and_a_pen.jpg#mediavie wer/File:Drawing_an_ellipse_via_two_tacks_a_loop_an d_a_pen.jpg

MIDPOINT ELLIPSE ALGORITHM Align ellipse with x/y axes Start at (0,r y ) Use two separate midpoint algorithms: 1) Increment x  choose y UNTIL slope < ) Then, decrement y  choose x Use symmetry to copy points to other 3 quadrants

IMPLICIT ELLIPSE FORMULA …which has the following properties:

NONSTANDARD ELLIPSES For ellipses not aligned with coordinate axes: 1) Adapt formulas to work over ENTIRE ellipse path 2) Use standard ellipse  use transformation to rotate ellipse points

MIDPOINT ELLIPSE ALGORITHM: REGION 1 1. Input r x, r y, and ellipse center (x c, y c ); get first point for ellipse centered on origin: 2. Get initial decision variable for region 1: 3. While (2r y 2 x < 2r x 2 y) If p1 k < 0  choose (x k + 1, y k )  Otherwise  choose (x k + 1, y k – 1) 

MIDPOINT ELLIPSE ALGORITHM: REGION 2 4. Get initial value of decision variable for region 2 from last position (x 0, y 0 ) calculated in region 1: 5. While (y != 0) If p2 k > 0  choose (x k, y k – 1)  Otherwise  choose (x k + 1, y k – 1)  6. For both regions, define symmetry points: (x,y), (-x,y), (x,-y), and (-x,-y) 7. For each position (x,y), plot:

CONIC SECTIONS Equation: Intersection of plane with double cone Does not include “degenerate” conics  point, line

DRAWING CONIC SECTIONS Use symmetry: Circles  across 8 octants Ellipses/Hyperbolas  across 4 quadrants Parabolas  across vertical axis Compute decision variable formulas for areas where slope is less than 1.0 and greater than 1.0 Go through midpoint algorithm, checking when to switch because of slope

POLYNOMIALS AND SPLINE CURVES Use parametric form Example: Parameter u  [0,1]  start/end of curve Approximate with line segments (small increments of u) Spline curve (splines) = continuous curve formed with polynomial pieces