1 91.427 Computer Graphics I, Fall 2010 Geometry.

Slides:



Advertisements
Similar presentations
Computer Graphics - Geometry & Representation -
Advertisements

Vector Calculus Mengxia Zhu Fall Objective Review vector arithmetic Distinguish points and vectors Relate geometric concepts to their algebraic.
Demetriou/Loizidou – ACSC330 – Chapter 4 Geometric Objects and Transformations Dr. Giorgos A. Demetriou Dr. Stephania Loizidou Himona Computer Science.
UBI 516 Advanced Computer Graphics
Math Foundations of CG Math 1 Hofstra University.
2/7/2001Hofstra University – CSC290B1 Review: Math (Ch 4)
Chapter 4.1 Mathematical Concepts. 2 Applied Trigonometry Trigonometric functions Defined using right triangle  x y h.
CS5500 Computer Graphics March 22, Angel: Interactive Computer Graphics 3E © Addison-Wesley 2002 Coordinate-Free Geometry When we learned simple.
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Geometry Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and.
Math Foundations of CG Math 1 Hofstra University.
Transformations. 2 Angel: Interactive Computer Graphics 3E © Addison-Wesley 2002 Coordinate-Free Geometry When we learned simple geometry, most of us.
Vectors in the Plane and in Three-Dimensional Space.
Vectors.
Scalar and Vector Fields
Section 9.2 Vectors Goals Goals Introduce vectors. Introduce vectors. Begin to discuss operations with vectors and vector components. Begin to discuss.
Geometric Objects and Transformations Geometric Entities Representation vs. Reference System Geometric ADT (Abstract Data Types)
2IV60 Computer Graphics Basic Math for CG
Computer Graphics Lecture 10 Fasih ur Rehman. Last Class Viewing – Perspectives – Projections.
Chapter 3 Vectors.
Computer Graphics: Programming, Problem Solving, and Visual Communication Steve Cunningham California State University Stanislaus and Grinnell College.
Graphics CSE 581 – Interactive Computer Graphics Mathematics for Computer Graphics CSE 581 – Roger Crawfis (slides developed from Korea University slides)
Math Primer for CG Ref: Interactive Computer Graphics, Chap. 4, E. Angel.
Kansas State University Department of Computing and Information Sciences CIS 736: Computer Graphics Monday, 26 January 2004 William H. Hsu Department of.
 A ABAB VECTORS Elements of a set V for which two operations are defined: internal  (addition) and external  (multiplication by a number), example.
Geometry CSC 2141 Introduction to Computer Graphics.
1 Geometry. 2 Objectives Introduce the elements of geometry ­Scalars ­Vectors ­Points Develop mathematical operations among them in a coordinate-free.
Kansas State University Department of Computing and Information Sciences CIS 736: Computer Graphics Wednesday, January 19, 2000 William H. Hsu Department.
1.1 – 1.2 The Geometry and Algebra of Vectors.  Quantities that have magnitude but not direction are called scalars. Ex: Area, volume, temperature, time,
Section 13.4 The Cross Product. Torque Torque is a measure of how much a force acting on an object causes that object to rotate –The object rotates around.
1 Chapter 4 Geometric Objects and Transformation.
Mathematical Foundations Sections A-1 to A-5 Some of the material in these slides may have been adapted from university of Virginia, MIT and Åbo Akademi.
Intro to 3D Models Angel Angel: Interactive Computer Graphics5E © Addison-Wesley
6.837 Linear Algebra Review Patrick Nichols Thursday, September 18, 2003.
Mathematics for Graphics. 1 Objectives Introduce the elements of geometry  Scalars  Vectors  Points Develop mathematical operations among them in a.
Geometric Objects and Transformation
16/5/ :47 UML Computer Graphics Conceptual Model Application Model Application Program Graphics System Output Devices Input Devices API Function.
C O M P U T E R G R A P H I C S Guoying Zhao 1 / 52 C O M P U T E R G R A P H I C S Guoying Zhao 1 / 52 Computer Graphics Three-Dimensional Graphics I.
Background Mathematics Aaron Bloomfield CS 445: Introduction to Graphics Fall 2006.
Vector Tools for Computer Graphics
Chapter 3 Vectors. Vector quantities  Physical quantities that have both numerical and directional properties Mathematical operations of vectors in this.
CS 551 / 645: Introductory Computer Graphics Mathematical Foundations.
Chun-Yuan Lin Mathematics for Computer Graphics 2015/12/15 1 CG.
Chapter 3 Vectors. Vectors – physical quantities having both magnitude and direction Vectors are labeled either a or Vector magnitude is labeled either.
Basic Entities Scalars - real numbers sizes/lengths/angles Vectors - typically 2D, 3D, 4D directions Points - typically 2D, 3D, 4D locations Basic Geometry.
1 Graphics CSCI 343, Fall 2015 Lecture 9 Geometric Objects.
CSCE 552 Fall 2012 Math By Jijun Tang. Applied Trigonometry Trigonometric functions  Defined using right triangle  x y h.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
1 Angel: Interactive Computer Graphics 4E © Addison-Wesley 2005 Geometry.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
Mathematical Foundation for Graphics
Graphics Graphics Korea University kucg.korea.ac.kr Geometric Primitives 고려대학교 컴퓨터 그래픽스 연구실.
David Luebke6/12/2016 CS 551 / 645: Introductory Computer Graphics David Luebke
Graphics Graphics Korea University kucg.korea.ac.kr Mathematics for Computer Graphics 고려대학교 컴퓨터 그래픽스 연구실.
Introduction; Mathematical Foundations CS 445/645 Introduction to Computer Graphics David Luebke, Spring 2003.
CHAPTER 3 VECTORS NHAA/IMK/UNIMAP.
CA 302 Computer Graphics and Visual Programming
CS5500 Computer Graphics March 6, 2006.
Spaces.
Mathematics for Computer Graphics
Outline Addition and subtraction of vectors Vector decomposition
CSC461: Lecture 12 Geometry Objectives
Lecture 03: Linear Algebra
Introduction to Computer Graphics with WebGL
Angel: Interactive Computer Graphics5E © Addison-Wesley 2009
CSE 411 Computer Graphics Lecture #2 Mathematical Foundations
2 Vectors in 2-space and 3-space
PPT&Programs
CHAPTER 3 VECTORS NHAA/IMK/UNIMAP.
Presentation transcript:

Computer Graphics I, Fall 2010 Geometry

Computer Graphics I, Fall 2010 Objectives Introduce elements of geometry ­Scalars ­Vectors ­Points Develop mathematical operations among them ­in coordinate-free manner Define basic primitives ­Line segments ­Polygons

Computer Graphics I, Fall Angel: Interactive Computer Graphics 5E © Addison-Wesley 2009 Basic Elements Geometry = study of relationships among objects in n-dim space ­In computer graphics: ­interested in objects that exist in 3-dimensions Want minimum set of primitives ==> can build more sophisticated objects Will need three basic elements ­Scalars ­Vectors ­Points

Computer Graphics I, Fall 2010 Coordinate-Free Geometry Learn simple geometry ==> started with Cartesian approach ­Points at locations in space p = (x, y, z) ­Derive results by algebraic manipulations involving these coordinates Approach nonphysical ­Physically, points exist regardless of location of arbitrary coordinate system ­Most geometric results independent of coordinate system ­Example Euclidean geometry: two triangles identical if ­two corresponding sides and angle between them identical

Computer Graphics I, Fall 2010 Scalars Need three basic elements in geometry ­Scalars, Vectors, Points Scalars (def): members of sets ­can be combined by two operations ­(addition and multiplication) ­obeying some fundamental axioms ­(associativity, commutivity, inverses) Examples: ­real and complex number systems ­under ordinary rules Scalars alone have no geometric properties

Computer Graphics I, Fall 2010 Vectors Physical definition: vector = quantity with two attributes ­Direction ­Magnitude Examples include ­Force ­Velocity ­Directed line segments Most important example for graphics Can map to other types v

Computer Graphics I, Fall 2010 Vector Operations Every vector has inverse ­Same magnitude but points in opposite direction Every vector can be multiplied by scalar There is a zero vector ­Zero magnitude, undefined orientation Sum of any two vectors ==> vector ­Use head-to-tail axiom v -v vv v u w

Computer Graphics I, Fall 2010 Linear Vector Spaces Mathematical system for manipulating vectors Operations ­Scalar-vector multiplication u =  v ­Vector-vector addition: w = u + v Expressions such as v = u +2w - 3r Make sense in vector space

Computer Graphics I, Fall 2010 Vectors Lack Position These vectors are identical ­Same length and magnitude Vectors spaces insufficient for geometry ­Need points

Computer Graphics I, Fall 2010 Points Location in space Operations allowed between points and vectors ­Point-point subtraction ==> vector ­Equivalent to point-vector addition P = v + Q v = P - Q

Computer Graphics I, Fall 2010 Affine Spaces Point + a vector space Operations ­Vector-vector addition ­Scalar-vector multiplication ­Point-vector addition ­Scalar-scalar operations For any point define ­1 P = P ­0 P = 0 (zero vector)

Computer Graphics I, Fall 2010 Lines Consider all points of the form ­P(  ) = P 0 +  d ­Set of all points that pass through P 0 in direction of vector d

Computer Graphics I, Fall 2010 Parametric Form Form is known as parametric form of line ­More robust and general than other forms ­Extends to curves and surfaces Two-dimensional forms ­Explicit (slope/intercept): y = mx +h ­Implicit: ax + by + c = 0 ­Parametric: x(  ) =  x 0 + (1-  )x 1 y(  ) =  y 0 + (1-  )y 1

Computer Graphics I, Fall 2010 Rays and Line Segments If  ≥ 0 ==> P(  ) = ray leaving P 0 in direction d If use two points to define v ==> P(  ) = Q +  (R - Q) = Q +  v =  R + (1 -  )Q For 0 ≤  ≤ 1 get all points on line segment joining R and Q

Computer Graphics I, Fall 2010 Convexity Object is convex iff for any two points in object all points on line segment between these points also in object P Q Q P convex not convex

Computer Graphics I, Fall 2010 Affine Sums Consider the “sum” P =  1 P 1 +  2 P 2 +…+  n P n Can show by induction that this makes sense iff  1 +  2 +…+  n = 1 ==> have affine sum of points P 1  P 2,…, P n If, in addition,  i ≥ 0, ==> convex hull of P 1  P 2,…, P n

Computer Graphics I, Fall 2010 Convex Hull Smallest convex object containing P 1  P 2,…, P n Formed by “shrink wrapping” points

Computer Graphics I, Fall 2010 Curves and Surfaces Curves: one parameter entities of form P(  ) where the function is nonlinear Surfaces: formed from two-parameter functions P( ,  ) ­Linear functions give planes and polygons P(  ) P( ,  )

Computer Graphics I, Fall 2010 Planes Plane can be defined by a point and two vectors or by three points P( ,  ) = R +  u +  v P( ,  ) = R +  (Q - R) +  (P - Q) u v R P R Q

Computer Graphics I, Fall 2010 Triangles convex sum of P and Q convex sum of S(  ) and R for 0 ≤ ,  ≤ 1, get all points in triangle

Computer Graphics I, Fall 2010 Normals Every plane has vector n normal (perpendicular, orthogonal) From point-two vector form P( ,  ) = R +  u +  v, can use cross product to find n = u  v and equivalent form (P(  ) - P)  n = 0 u v P