2D Object Definition (1/3)

Similar documents
Last week. Machiraju/Zhang/Möller/Fuhrmann

Transforms. COMP 575/770 Spring 2013

Lecture 5 2D Transformation

Vector Algebra Transformations. Lecture 4

Graphics and Interaction Transformation geometry and homogeneous coordinates

COMP30019 Graphics and Interaction Transformation geometry and homogeneous coordinates

Geometric transformations assign a point to a point, so it is a point valued function of points. Geometric transformation may destroy the equation

Lecture 4: Transforms. Computer Graphics CMU /15-662, Fall 2016

Math background. 2D Geometric Transformations. Implicit representations. Explicit representations. Read: CS 4620 Lecture 6

CT5510: Computer Graphics. Transformation BOCHANG MOON

521493S Computer Graphics Exercise 2 Solution (Chapters 4-5)

Polar Coordinates. Chapter 10: Parametric Equations and Polar coordinates, Section 10.3: Polar coordinates 27 / 45

Computer Graphics: Geometric Transformations

Shadows in Computer Graphics

Section 12.1 Translations and Rotations

2D/3D Geometric Transformations and Scene Graphs

CS337 INTRODUCTION TO COMPUTER GRAPHICS. Describing Shapes. Constructing Objects in Computer Graphics. Bin Sheng Representing Shape 9/20/16 1/15

Perspective Mappings. Contents

CS-321 Thursday 12 September 2002 Quiz (3 pts.) What is the purpose of a control grid in a cathode ray tube (CRT)?

C O M P U T E R G R A P H I C S. Computer Graphics. Three-Dimensional Graphics I. Guoying Zhao 1 / 52

UNIT 2 2D TRANSFORMATIONS

CS123 INTRODUCTION TO COMPUTER GRAPHICS. Describing Shapes. Constructing Objects in Computer Graphics 1/15

2D and 3D Transformations AUI Course Denbigh Starkey

Part 3: 2D Transformation

CHAPTER 2 REVIEW COORDINATE GEOMETRY MATH Warm-Up: See Solved Homework questions. 2.2 Cartesian coordinate system

GEOMETRIC TRANSFORMATIONS AND VIEWING

Geometric Transformations

Answers to practice questions for Midterm 1

Module 1 Session 1 HS. Critical Areas for Traditional Geometry Page 1 of 6

Unit Circle. Project Response Sheet

Computer Graphics 7: Viewing in 3-D

MATH 113 Section 8.2: Two-Dimensional Figures

Specifying Complex Scenes

Review Exercise. 1. Determine vector and parametric equations of the plane that contains the

Cs602-computer graphics MCQS MIDTERM EXAMINATION SOLVED BY ~ LIBRIANSMINE ~

Point A location in geometry. A point has no dimensions without any length, width, or depth. This is represented by a dot and is usually labelled.

The base of a solid is the region in the first quadrant bounded above by the line y = 2, below by

XPM 2D Transformations Week 2, Lecture 3

COMP3421. Vector geometry, Clipping

Polar Coordinates. Chapter 10: Parametric Equations and Polar coordinates, Section 10.3: Polar coordinates 28 / 46

MATH 1020 WORKSHEET 10.1 Parametric Equations

Geometry. Cluster: Experiment with transformations in the plane. G.CO.1 G.CO.2. Common Core Institute

Section 7.2 Volume: The Disk Method

Math 462: Review questions

XPM 2D Transformations Week 2, Lecture 3

Chapter 5. Projections and Rendering

Editing and Transformation

Lesson 5: Definition of Rotation and Basic Properties

CS 130 Final. Fall 2015

Notes on Spherical Geometry

2D transformations: An introduction to the maths behind computer graphics

Last week. Machiraju/Zhang/Möller

Representing 2D Transformations as Matrices

7.3 3-D Notes Honors Precalculus Date: Adapted from 11.1 & 11.4

Transformations: 2D Transforms

Geometry. Topic 1 Transformations and Congruence

Transformations. Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico

AQA GCSE Further Maths Topic Areas

1. (10 pts) Order the following three images by how much memory they occupy:

Today s Agenda. Geometry

Pre-Calculus Guided Notes: Chapter 10 Conics. A circle is

GEOMETRIC TOOLS FOR COMPUTER GRAPHICS

2-1 Transformations and Rigid Motions. ENGAGE 1 ~ Introducing Transformations REFLECT

To graph the point (r, θ), simply go out r units along the initial ray, then rotate through the angle θ. The point (1, 5π 6

The radius for a regular polygon is the same as the radius of the circumscribed circle.

Overview. By end of the week:

Chapter 11. Parametric Equations And Polar Coordinates

Lecture 6 Sections 4.3, 4.6, 4.7. Wed, Sep 9, 2009

CS602 Midterm Subjective Solved with Reference By WELL WISHER (Aqua Leo)

To graph the point (r, θ), simply go out r units along the initial ray, then rotate through the angle θ. The point (1, 5π 6. ) is graphed below:

E0005E - Industrial Image Analysis

a triangle with all acute angles acute triangle angles that share a common side and vertex adjacent angles alternate exterior angles

Common Core Cluster. Experiment with transformations in the plane. Unpacking What does this standard mean that a student will know and be able to do?

Coordinate Transformations in Advanced Calculus

Isometries. 1 Identifying Isometries

The Law of Reflection

Grade 6 Mathematics Item Specifications Florida Standards Assessments

Geometry I Can Statements I can describe the undefined terms: point, line, and distance along a line in a plane I can describe the undefined terms:

CALCULATING TRANSFORMATIONS OF KINEMATIC CHAINS USING HOMOGENEOUS COORDINATES

Geometry Geometry Grade Grade Grade

Column and row space of a matrix

3D Mathematics. Co-ordinate systems, 3D primitives and affine transformations

Three Dimensional Geometry. Linear Programming

The Three Dimensional Coordinate System

Solution Notes. COMP 151: Terms Test

Course Number: Course Title: Geometry

Geometry: Unit 1: Transformations. Chapter 14 (In Textbook)

Today. Parity. General Polygons? Non-Zero Winding Rule. Winding Numbers. CS559 Lecture 11 Polygons, Transformations

PARAMETRIC EQUATIONS AND POLAR COORDINATES

Goals: Course Unit: Describing Moving Objects Different Ways of Representing Functions Vector-valued Functions, or Parametric Curves

1 Affine and Projective Coordinate Notation

Homogeneous Coordinates and Transformations of the Plane

Lecture 34: Curves defined by Parametric equations

AP * Calculus Review. Area and Volume

Robot Vision: Projective Geometry

We can use square dot paper to draw each view (top, front, and sides) of the three dimensional objects:

Jim Lambers MAT 169 Fall Semester Lecture 33 Notes

Make geometric constructions. (Formalize and explain processes)

Computer Graphics Hands-on

Object Representation Affine Transforms. Polygonal Representation. Polygonal Representation. Polygonal Representation of Objects

Transcription:

2D Object Definition (1/3) Lines and Polylines Lines drawn between ordered points to create more complex forms called polylines Same first and last point make closed polyline or polygon Can intersect itself if it does not, called simple polygon Convex vs. Concave Polygons Convex: For every pair of points in the polygon, the line between them is fully contained in the polygon. Concave: Not convex: some two points in the polygon are joined by a line not fully contained in the polygon. Andries van Dam September 14, 2000 Transformation 1/17

2D Object Definition (2/3) Special polygons Circles Consist of all points equidistant from one predetermined point (the center) (radius) r = c, where c is a constant On a Cartesian grid with center of circle at origin equation is r 2 = x 2 + y 2 Andries van Dam September 14, 2000 Transformation 2/17

2D Object Definition (3/3) Circle as polygon Informally: a regular polygon with > 15 sides (Aligned) Ellipses A circle scaled along the x or y axis Example: height, on y-axis, remains 3 while length, on x-axis, changes from 3 to 6 Andries van Dam September 14, 2000 Transformation 3/17

2D to 3D Object Definition Vertices in motion ( Generative object description ) Line is drawn by tracing path of a point as it moves (one dimensional entity) Square drawn by tracing vertices of a line as it moves perpendicularly to itself (two dimensional entity) Cube drawn by tracing paths of vertices of a square as it moves perpendicularly to itself (three-dimensional entity) Circle drawn by swinging a point at a fixed length around a center point Andries van Dam September 14, 2000 Transformation 4/17

Translation Component-wise addition of vectors v = v + t where and x = x + dx y = y + dy To move polygons: just translate vertices (vectors) and then redraw lines between them Preserves lengths (isometric) Preserves angles (conformal) Andries van Dam September 14, 2000 Transformation 5/17

Component-wise scalar multiplication of vectors v = Sv where Scaling and x = s x x y = s y y Does not preserve lengths Does not preserve angles (except when scaling is uniform) Andries van Dam September 14, 2000 Transformation 6/17

Rotation Rotation of vectors through an angle θ v = R θ v where and x = x cos θ y sin θ y = x sin θ + y cos θ Proof is by double angle formula Preserves lengths and angles Note: house shifts position relative to the origin Andries van Dam September 14, 2000 Transformation 7/17

Rotation and Scale are Relative to Origin Suppose object is not centered at origin? Solution: move it to the origin, then scale and/or rotate, then move it back. We d like to be able to compose successive transformations Andries van Dam September 14, 2000 Transformation 8/17

Homogenous Coordinates Translation, scaling and rotation are expressed (nonhomogeneously) as: Composition is difficult to express, since translation not expressed as a matrix multiplication Homogeneous coordinates allow all three to be expressed homogeneously, allowing composition via multiplication by 3x3 matrices w is 1 for affine transformations in graphics Andries van Dam September 14, 2000 Transformation 9/17

What is? P 2d is intersection of line determined by P h with the w = 1 plane So an infinite number of points correspond to (x,y,1) : they constitute the whole line (tx,ty,tw) Andries van Dam September 14, 2000 Transformation 10/17

Homogeneous Coordinate Transformations (1/2) For points written in homogeneous translation, scaling and rotation relative to the origin are expressed homogeneously as: Andries van Dam September 14, 2000 Transformation 11/17

Homogeneous Coordinate Transformations (2/2) Consider The 2 x 2 submatrix columns: are unit vectors (length=1) are perpendicular (dot product=0) are vectors into which X-axis and Y-axis rotate (are images of x and y unit vectors) The 2 x 2 submatrix rows: are unit vectors are perpendicular rotate into X-axis and Y-axis (are pre-images of x and y unit vectors) These properties of rows and columns preserve lengths and angles of the original geometry. Therefore, this matrix is a rigid body transformation Andries van Dam September 14, 2000 Transformation 12/17

Translate [1,3] by [7,9] Examples Scale [2,3] by 5 in the x direction and 10 in the Y direction Rotate [2,2] by 90 0 Andries van Dam September 14, 2000 Transformation 13/17

The Translation Matrix is very Useful With the T matrix from above, we can avoid the unwanted translation introduced when we scale or rotate an object not centered at the origin. This is done by translating the object to the origin, performing the scale or rotate operation, and then translating the object back. Here s an example. Andries van Dam September 14, 2000 Transformation 14/17

3D Basic Transformations (1/2) (right-handed coordinate system) Translation Scaling Andries van Dam September 14, 2000 Transformation 15/17

3D Basic Transformations (2/2) Rotation about X-axis (right-handed coordinate system) Rotation about Y-axis Rotation about Z-axis Andries van Dam September 14, 2000 Transformation 16/17

3D Homogeneous Coordinate Example Translation matrix Andries van Dam September 14, 2000 Transformation 17/17