1 / 13

Computer Graphics Geometric Objects and Transformations

Computer Graphics Geometric Objects and Transformations. Identical vectors. Scalars, Points, and Vectors :. A scalar is a magnitude only. Ex: -3.5.

Download Presentation

Computer Graphics Geometric Objects and Transformations

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Computer GraphicsGeometric Objects and Transformations

  2. Identical vectors Scalars, Points, and Vectors: A scalar is a magnitude only. Ex: -3.5 A vector is a magnitude and a direction. Vectors are represented pictorially as a DIRECTED LINE SEGMENT. The length of the vector represents its magnitude.

  3. Scalars, Points, and Vectors: Two vectors are ADDED using the HEAD-TO-TAIL rule, and addition is commutative. A vector is NOT ANCHORED in space. A POINT is anchored in space as the HEAD of a vector extending outward from the ORIGIN of the space.

  4. Lines: if P and Q are points in an affine space, the set of points of the form R(t) =(1- t) P + t Q form a line passing through P and Q.

  5. The parametric form of a line in space is given by: P( ) = Q + v Q is the anchor point v is a vector that points in the direction of the line. is a scalar that varies P( ), a function of , is the set of all points along the line passing through Q and having the direction v. ( Note that this notation is slightly different than the text.) Lines:

  6. Convexity: An object is CONVEX if any point on a line segment between any two points in the object is also in the object. The CONVEX HULL of an object is the smallest convex object which contains the original.

  7. Dot and Cross Products: The square of the magnitude of a vector v is given by the dot product: | v | = v v . 2 v = . v v = v v + v v + … + v v 1 1 2 2 n n v v v 1 2 n . . .

  8. . uv v = v v v 1 n 2 . . . Dot and Cross Products: The cosine of the angle between two vectors u and v is given by cos 0 = |u | |v| . u v = u v + u v + … + u v 1 1 2 2 n n

  9. u 1 u = u 2 u 3 v u x v = u v - u v 1 3 2 1 3 2 1 3 1 2 2 3 1 v = v 2 v 3 u v - u v u v - u v Dot and Cross Products: The angle between two vectors u and v can also be computed using the magnitude of the cross product |sin 0| = |u | |v| |uxv|

  10. A plane can also be described in terms of a point, P, and two non-parallel vectors, u and v A = P + u + v Planes: if P, Q and R are three points in an affine space, and they are not coliniear, then the plane defined by P, R and Q is: F(s,t) = (1-s)((1- t) P + t Q)+ s R

  11. Planes: The plane equation can also be given as follows: (a,b,c) (x-x0,y-y0,z-z0) = 0 where n = (a,b,c) plane normal T = (x,y,z) T represents any test point P = (x0,y0,z0) a known point in the plane .

  12. Planes: ax + by + cz + d = 0 ,where d = -(ax0 + by0 + cz0) If we evaluate the left side for a given point T = (x,y,z) in 3D space and the result is < 0, T lies beneath the plane = 0, T lies on the plane > 0, T lies above the plane

  13. A plane can also be described in terms of a point, P, and two non-parallel vectors, u and v A = P + u + v n Planes: A vector, n, which is orthogonal to both u and v can be computed as n = u x v

More Related