Three-Dimensional Object Representations Chapter 8

Size: px
Start display at page:

Download "Three-Dimensional Object Representations Chapter 8"

Transcription

1 Three-Dimensional Object Representations Chapter 8

2 3D Object Representation A surace can be analticall generated using its unction involving the coordinates. An object can be represented in terms o its vertices, edges and polgons. (Wire Frame, Polgonal Mesh etc.) Curves and suraces can also be designed using splines b speciing a set o ew control points. = (,z) z...

3 Solid Modeling - Polhedron A polhedron is a connected mesh o simple planar polgons that encloses a inite amount o space. A polhedron is a special case o a polgon mesh that satisies the ollowing properties: Ever edge is shared b eactl two aces. At least three edges meet at each verte. Faces do not interpenetrate. Faces at most touch along a common edge. Euler s ormula : I F, E, V represent the number o aces, vertices and edges o a polhedron, then V + F E =. 3

4 3D Object Representation The data or polgonal meshes can be represented with: Verte List, and Face List (Polgon List) Additionall, we oten keep Normal List, and/or Edge List 4

5 Vertices and Faces - E.g. Cube Verte Inde Face Inde 5

6 Data representation using verte, ace and normal lists: Verte List Normal List Polgon List

7 Data representation using verte, ace and edge lists: Verte List Edge List Polgon List [i] [i] z[i] L[j] M[j] P[k] Q[k] R[k] S[k]

8 Normal Vectors (OpenGL) Assigning a normal vector to a polgon: glbegin(gl_polygon); glnormal3(n,n,zn); glverte3(,,z); glverte3(,,z); glverte3(3,3,z3); glverte3(4,4,z4); glend(); Enabling automatic conversion o normal vectors to unit vectors: glenable(gl_normalize); 8

9 Regular Polhedra (Platonic Solids) I all the aces o a polhedron are identical, and each is a regular polgon, then the object is called a platonic solid. Onl ive such objects eist. 9

10 Wire-Frame Models I the object is deined onl b a set o nodes (vertices), and a set o lines connecting the nodes, then the resulting object representation is called a wire-rame model. Ver suitable or engineering applications. Simplest 3D Model - eas to construct. Eas to clip and manipulate. Not suitable or building realistic models.

11 Wire Frame Eamples - Glut Some Wirerame Models in OpenGL: Cube: glutwirecube(gldouble size); Sphere: glutwiresphere( ); Torus: glutwiretorus( ); Teapot: glutwireteapot(gldouble size); Cone: glutwirecone( ); ( ) Reer tet or list o arguments.

12 Wire Frame Model - Utah Teapot

13 Polgonal Mesh Three-dimensional suraces and solids can be approimated b a set o polgonal and line elements. Such suraces are called polgonal meshes. The set o polgons or aces, together orm the skin o the object. This method can be used to represent a broad class o solids/suraces in graphics. A polgonal mesh can be rendered using hidden surace removal algorithms. 3

14 Polgonal Mesh - Eample 4

15 Solid Modeling Polgonal meshes can be used in solid modeling. An object is considered solid i the polgons it together to enclose a space. In solid models, it is necessar to incorporate directional inormation on each ace b using the normal vector to the plane o the ace, and it is used in the shading process. 5

16 Solid Modeling - Eample 6

17 Solid Modeling Eamples - Glut Some predeined Solid Models in OpenGL: Cube: glutsolidcube(gldouble size); Sphere: glutsolidsphere( ); Torus: glutsolidtorus( ); Teapot: glutsolidteapot(gldouble size); Cone: glutsolidcone( ); ( ) Arguments same as wire-rame models. 7

18 Quadric Suraces Suraces, which are described with second-degree equations The include spheres, elipsoids, tori, paraboloids, and hiperboloids 8

19 Sphere In Cartesian coordinates In parametric orm r z / /, sin, sin cos, cos cos r z r r 9

20 Elipsoid In Cartesian coordinates In parametric orm z r z r r / /, sin, sin cos, cos cos z r z r r

21 Torus,generated b rotating a circle In Cartesian coordinates r aial z r In parametric orm ( r r cos)cos, ( r aial aial z r sin, r cos)sin,

22 Torus,generated b rotating an ellipse In Cartesian coordinates In parametric orm z aial r z r r, sin, )sin cos (, )cos cos ( z aial aial r z r r r r

23 Superquadrics-Superellipse s s r r, sin, cos s s r r 3

24 Superelipsoid In Cartesian coordinates In parametric orm s z s s s s r z r r / /, sin, sin cos, cos cos s z s s s s r z r r 4

25 Surace Modeling = (, z) Y X Z Man suraces can be represented b an eplicit unction o two independent variables, such as = (, z). 5

26 Surace Modeling - Eample 6

27 Representations o Curves Use a sequence o points Piecewise linear - does not accuratel model a smooth line Tedious to create list o points Epensive to manipulate curve because all points must be repositioned Instead, model curve as piecewisepolnomial = (t), = (t), z = z(t) where (), (), z() are polnomials 7

28 Maniold Splines, X. Gu, Y. He & H. Qin, Solid and Phsics Modeling 5. Spline Representations A spline is a smooth curve deined mathematicall using a set o constraints Splines have man uses: D illustration Fonts 3D Modelling Animation ACM 987 Principles o traditional animation applied to 3D computer animation 8

29 Big Idea User speciies control points Deines a smooth curve Curve Control Points Control Points 9

30 Images taken rom Hearn & Baker, Computer Graphics with OpenGL (4) Interpolation Vs Approimation A spline curve is speciied using a set o control points There are two was to it a curve to these points: Interpolation - the curve passes through all o the control points Approimation - the curve does not pass through all o the control points 3

31 Speciing Curves Control Points A set o points that inluence the curve s shape Knots Control points that lie on the curve Interpolating Splines Curves that pass through the control points (knots) Approimating Splines Control points merel inluence shape 3

32 Images taken rom Hearn & Baker, Computer Graphics with OpenGL (4) Conve Hulls The boundar ormed b the set o control points or a spline is known as a conve hull Think o an elastic band stretched around the control points 3

33 Images taken rom Hearn & Baker, Computer Graphics with OpenGL (4) Control Graphs A polline connecting the control points in order is known as a control graph Usuall displaed to help designers keep track o their splines 33

34 Cubic Polnomials (t) = a t 3 + b t + c t + d Similarl or (t) and z(t) Let t: ( <= t <= ) Let T = [t 3 t t ] Coeicient Matri C Curve: Q(t) = T*C z z z z d c d c d c b b b a a a t t t 3 34

35 Another nice eature o curves Derivatives Ver useul or lighting equations Useul or automatic eature detection 35

36 Piecewise Curve Segments One curve constructed b connecting man smaller segments end-to-end Must have rules or how the segments are joined Continuit describes the joint Parametric continuit Geometric continuit 36

37 Parametric Continuit C is tangent continuit (velocit) C is nd derivative continuit (acceleration) Matching direction and magnitude o d n / dt n C n continous 37

38 Geometric Continuit I positions match G geometric continuit I direction (but not necessaril magnitude) o tangent matches G geometric continuit The tangent value at the end o one curve is proportional to the tangent value o the beginning o the net curve 38

39 Parametric Cubic Curves In order to assure C continuit, curves must be o at least degree 3 Here is the parametric deinition o a cubic (degree 3) spline in two dimensions How do we etend it to three dimensions? 39

40 Parametric Cubic Splines Can represent this as a matri too 4

41 Coeicients So how do we select the coeicients? [a b c d ] and [a b c d ] must satis the constraints deined b the knots and the continuit conditions 4

42 Parametric Curves Diicult to conceptualize curve as (t) = a t 3 + b t + c t + d Instead, deine curve as weighted combination o 4 well-deined cubic polnomials Each curve tpe deines dierent cubic polnomials and weighting schemes 4

43 Parametric Curves Hermite two endpoints and two endpoint tangent vectors Bezier - two endpoints and two other points that deine the endpoint tangent vectors Splines our control points C and C continuit at the join points Come close to their control points, but not guaranteed to touch them 43

44 Hermite Cubic Splines An eample o knot and continuit constraints 44

45 Hermite Cubic Splines One cubic curve or each dimension A curve constrained to /-plane has two curves: d c b a t t t t d ct bt at t ) ( ) ( 3 3 h g e t t t t h gt t et t ) ( ) (

46 Hermite Cubic Splines A -D Hermite Cubic Spline is deined b eight parameters: a, b, c, d, e,, g, h How do we convert the intuitive endpoint constraints into these (relativel) unintuitive eight parameters? We know: (, ) position at t =, p (, ) position at t =, p (, ) derivative at t =, dp/dt (, ) derivative at t =, dp/dt 46

47 Hermite Cubic Spline We know: (, ) position at t =, p p d d c b a d c b a 3 3 () () () p h h g e h g e 3 3 () () () 47

48 Hermite Cubic Spline We know: (, ) position at t =, p p d c b a d c b a d c b a 3 3 () () () p h g e h g e h g e 3 3 () () () 48

49 Hermite Cubic Splines So ar we have our equations, but we have eight unknowns Use the derivatives d c b a t t t c bt at t d ct bt at t 3 ) ( 3 ) ( ) ( 3 h g e t t t g t et t h gt t et t 3 ) ( 3 ) ( ) ( 3 49

50 Hermite Cubic Spline We know: (, ) derivative at t =, dp/dt dt dp c d c b a c b a () 3 () 3 () dt dp g h g e g e () 3 () 3 () 5

51 Hermite Cubic Spline We know: (, ) derivative at t =, dp/dt dt dp c b a d c b a c b a 3 () 3 () 3 () dt dp g e h g e g e 3 () 3 () 3 () 5

52 Hermite Speciication Matri equation or Hermite Curve p p r p r p t 3 t t t 3 a b c d e g h p p dp dp dt dt dp dp p p dt dt t = t = t = t = 5

53 Solve Hermite Matri h g e d c b a dt dp dt dp p p dt dp dt dp p p 3 53

54 Spline and Geometr Matrices p p a e p 3 3 p b dp dp dt dt c g dp d h dp dt dt M Hermite G Hermite 54

55 Resulting Hermite Spline Equation 55

56 Sample Hermite Curves 56

57 Blending Functions B multipling irst two matrices in lowerlet equation, ou have our unctions o t that blend the our control parameters These are blending unctions 57

58 Hermite Blending Functions I ou plot the blending unctions on the parameter t 58

59 Hermite Blending Functions Remember, each blending unction relects inluence o P, P, DP, DP on spline s shape 59

60 Bézier Spline Curves A spline approimation method developed b the French engineer Pierre Bézier or use in the design o Renault car bodies A Bézier curve can be itted to an number o control points although usuall 4 are used 6

61 Bézier Spline Curves (cont ) Consider the case o n+ control points denoted as p k =( k, k, z k ) where k varies rom to n The coordinate positions are blended to produce the position vector P(u) which describes the path o the Bézier polnomial unction between p and p n P( u) n k p k BEZ k, n( u), u 6

62 Bézier Spline Curves (cont ) The Bézier blending unctions BEZ k,n (u) are the Bernstein polnomials BEZ k, n ( u) k nk C( n, k) u ( u) where parameters C(n,k) are the binomial coeicients n! C( n, k) k!( n k)! 6

63 Bézier Spline Curves (cont ) So, the individual curve coordinates can be given as ollows n k n k k u BEZ u, ) ( ) ( n k n k k u BEZ z u z, ) ( ) ( n k n k k u BEZ u, ) ( ) ( 63

64 Images taken rom Hearn & Baker, Computer Graphics with OpenGL (4) Bézier Spline Curves (cont ) 64

65 Important Properties o Bézier Curves The irst and last control points are the irst and last point on the curve P() = p P() = p n The curve lies within the conve hull as the Bézier blending unctions are all positive and sum to n k BEZ k, n( u) 65

66 Cubic Bézier Curve Man graphics packages restrict Bézier curves to have onl 4 control points (i.e. n = 3) The blending unctions when n = 3 are simpliied as ollows: BEZ BEZ BEZ BEZ,3,3,3 3,3 ( u) 3u u 3 3 3u( u) ( u) 66

67 Cubic Bézier Blending Functions 67

68 Bézier Spline Curve Eercise (3, 7) (, 5) (, 4) (7, ) 68

69 Properties o Bezier Curve Bezier curve is a polnomial o degree one less than the number o control points p p p 3 p p p p Quadratic Curve Cubic Curve 69

70 Properties o Bezier Curve (cont.) Bezier curve alwas passes through the irst and last points; i.e., and () () () () m m 7

71 Properties o Bezier Curve (cont) The slope at the beginning o the curve is along the line joining the irst two control points, and the slope at the end o the curve is along the line joining the last two points. p p p

72 Properties o Bezier Curve (cont) Bezier blending unctions are all positive and the sum is alwas. m i Bez m, i ( u) This means that the curve is the weighted sum o the control points. 7

73 Design Technique using Bezier Curves: A closed Bezier curve can be generated b speciing the irst and last control points at the same location p 3 p p 4 p p =p 5 73

74 Design Technique (Cont) A Bezier curve can be made to pass closer to a given coordinate position b assigning multiple control points to that position. p = p p 3 p p 4 74

75 A Bezier curve can be ormed b piecing several Bezier section with lower degree. p p = p p 3 p p p 75

76 Bezier Suraces m r( u, v) Bez ( u) Bez ( v) r, i j m i l, j i j u, v where r( u, v) ( ( u, v), ( u, v), z( u, v)) r (,, z ) ij ij ij ij l 76

77 Bezier Patch A set o 6 control points The Bezier Patch 77

78 Bezier Patch Utah Teapot Deined Using Control Points 78

79 Bezier Patch Utah Teapot Generated Using Bezier Patches 79

80 B-Spline Curves Most widel used Commonl available in CAD sstems and graphics packages Like Bezier splines, B-Splines are generated b approimating a set o control points advantages over Bezier splines degree o the polnomial is (generall) independent o number o control points allows local shape control Disadvantage: more comple 8

ES 240: Scientific and Engineering Computation. a function f(x) that can be written as a finite series of power functions like

ES 240: Scientific and Engineering Computation. a function f(x) that can be written as a finite series of power functions like Polynomial Deinition a unction () that can be written as a inite series o power unctions like n is a polynomial o order n n ( ) = A polynomial is represented by coeicient vector rom highest power. p=[3-5

More information

3D Modeling Parametric Curves & Surfaces. Shandong University Spring 2013

3D Modeling Parametric Curves & Surfaces. Shandong University Spring 2013 3D Modeling Parametric Curves & Surfaces Shandong University Spring 2013 3D Object Representations Raw data Point cloud Range image Polygon soup Surfaces Mesh Subdivision Parametric Implicit Solids Voxels

More information

3D Modeling Parametric Curves & Surfaces

3D Modeling Parametric Curves & Surfaces 3D Modeling Parametric Curves & Surfaces Shandong University Spring 2012 3D Object Representations Raw data Point cloud Range image Polygon soup Solids Voxels BSP tree CSG Sweep Surfaces Mesh Subdivision

More information

Intro to Modeling Modeling in 3D

Intro to Modeling Modeling in 3D Intro to Modeling Modeling in 3D Polygon sets can approximate more complex shapes as discretized surfaces 2 1 2 3 Curve surfaces in 3D Sphere, ellipsoids, etc Curved Surfaces Modeling in 3D ) ( 2 2 2 2

More information

CS130 : Computer Graphics Curves (cont.) Tamar Shinar Computer Science & Engineering UC Riverside

CS130 : Computer Graphics Curves (cont.) Tamar Shinar Computer Science & Engineering UC Riverside CS130 : Computer Graphics Curves (cont.) Tamar Shinar Computer Science & Engineering UC Riverside Blending Functions Blending functions are more convenient basis than monomial basis canonical form (monomial

More information

3.2 THREE DIMENSIONAL OBJECT REPRESENTATIONS

3.2 THREE DIMENSIONAL OBJECT REPRESENTATIONS 3.1 THREE DIMENSIONAL CONCEPTS We can rotate an object about an axis with any spatial orientation in threedimensional space. Two-dimensional rotations, on the other hand, are always around an axis that

More information

Fall CSCI 420: Computer Graphics. 4.2 Splines. Hao Li.

Fall CSCI 420: Computer Graphics. 4.2 Splines. Hao Li. Fall 2014 CSCI 420: Computer Graphics 4.2 Splines Hao Li http://cs420.hao-li.com 1 Roller coaster Next programming assignment involves creating a 3D roller coaster animation We must model the 3D curve

More information

Curves and Surfaces 1

Curves and Surfaces 1 Curves and Surfaces 1 Representation of Curves & Surfaces Polygon Meshes Parametric Cubic Curves Parametric Bi-Cubic Surfaces Quadric Surfaces Specialized Modeling Techniques 2 The Teapot 3 Representing

More information

Design considerations

Design considerations Curves Design considerations local control of shape design each segment independently smoothness and continuity ability to evaluate derivatives stability small change in input leads to small change in

More information

An introduction to interpolation and splines

An introduction to interpolation and splines An introduction to interpolation and splines Kenneth H. Carpenter, EECE KSU November 22, 1999 revised November 20, 2001, April 24, 2002, April 14, 2004 1 Introduction Suppose one wishes to draw a curve

More information

Sung-Eui Yoon ( 윤성의 )

Sung-Eui Yoon ( 윤성의 ) CS480: Computer Graphics Curves and Surfaces Sung-Eui Yoon ( 윤성의 ) Course URL: http://jupiter.kaist.ac.kr/~sungeui/cg Today s Topics Surface representations Smooth curves Subdivision 2 Smooth Curves and

More information

Reteaching Golden Ratio

Reteaching Golden Ratio Name Date Class Golden Ratio INV 11 You have investigated fractals. Now ou will investigate the golden ratio. The Golden Ratio in Line Segments The golden ratio is the irrational number 1 5. c On the line

More information

Computer Graphics Curves and Surfaces. Matthias Teschner

Computer Graphics Curves and Surfaces. Matthias Teschner Computer Graphics Curves and Surfaces Matthias Teschner Outline Introduction Polynomial curves Bézier curves Matrix notation Curve subdivision Differential curve properties Piecewise polynomial curves

More information

9.8 Graphing Rational Functions

9.8 Graphing Rational Functions 9. Graphing Rational Functions Lets begin with a deinition. Deinition: Rational Function A rational unction is a unction o the orm P where P and Q are polynomials. Q An eample o a simple rational unction

More information

Curves and Surfaces Computer Graphics I Lecture 10

Curves and Surfaces Computer Graphics I Lecture 10 15-462 Computer Graphics I Lecture 10 Curves and Surfaces Parametric Representations Cubic Polynomial Forms Hermite Curves Bezier Curves and Surfaces [Angel 10.1-10.6] September 30, 2003 Doug James Carnegie

More information

Information Coding / Computer Graphics, ISY, LiTH. Splines

Information Coding / Computer Graphics, ISY, LiTH. Splines 28(69) Splines Originally a drafting tool to create a smooth curve In computer graphics: a curve built from sections, each described by a 2nd or 3rd degree polynomial. Very common in non-real-time graphics,

More information

Until now we have worked with flat entities such as lines and flat polygons. Fit well with graphics hardware Mathematically simple

Until now we have worked with flat entities such as lines and flat polygons. Fit well with graphics hardware Mathematically simple Curves and surfaces Escaping Flatland Until now we have worked with flat entities such as lines and flat polygons Fit well with graphics hardware Mathematically simple But the world is not composed of

More information

LECTURE #6. Geometric Modelling for Engineering Applications. Geometric modeling for engineering applications

LECTURE #6. Geometric Modelling for Engineering Applications. Geometric modeling for engineering applications LECTURE #6 Geometric modeling for engineering applications Geometric Modelling for Engineering Applications Introduction to modeling Geometric modeling Curve representation Hermite curve Bezier curve B-spline

More information

The Free-form Surface Modelling System

The Free-form Surface Modelling System 1. Introduction The Free-form Surface Modelling System Smooth curves and surfaces must be generated in many computer graphics applications. Many real-world objects are inherently smooth (fig.1), and much

More information

Bezier Curves, B-Splines, NURBS

Bezier Curves, B-Splines, NURBS Bezier Curves, B-Splines, NURBS Example Application: Font Design and Display Curved objects are everywhere There is always need for: mathematical fidelity high precision artistic freedom and flexibility

More information

Central issues in modelling

Central issues in modelling Central issues in modelling Construct families of curves, surfaces and volumes that can represent common objects usefully; are easy to interact with; interaction includes: manual modelling; fitting to

More information

Computer Graphics. Unit VI: Curves And Fractals. By Vaishali Kolhe

Computer Graphics. Unit VI: Curves And Fractals. By Vaishali Kolhe Computer Graphics Unit VI: Curves And Fractals Introduction Two approaches to generate curved line 1. Curve generation algorithm Ex. DDA Arc generation algorithm 2. Approximate curve by number of straight

More information

COMPUTER AIDED ENGINEERING DESIGN (BFF2612)

COMPUTER AIDED ENGINEERING DESIGN (BFF2612) COMPUTER AIDED ENGINEERING DESIGN (BFF2612) BASIC MATHEMATICAL CONCEPTS IN CAED by Dr. Mohd Nizar Mhd Razali Faculty of Manufacturing Engineering mnizar@ump.edu.my COORDINATE SYSTEM y+ y+ z+ z+ x+ RIGHT

More information

The Graph of an Equation

The Graph of an Equation 60_0P0.qd //0 :6 PM Page CHAPTER P Preparation for Calculus Archive Photos Section P. RENÉ DESCARTES (96 60) Descartes made man contributions to philosoph, science, and mathematics. The idea of representing

More information

2D Spline Curves. CS 4620 Lecture 13

2D Spline Curves. CS 4620 Lecture 13 2D Spline Curves CS 4620 Lecture 13 2008 Steve Marschner 1 Motivation: smoothness In many applications we need smooth shapes [Boeing] that is, without discontinuities So far we can make things with corners

More information

Know it. Control points. B Spline surfaces. Implicit surfaces

Know it. Control points. B Spline surfaces. Implicit surfaces Know it 15 B Spline Cur 14 13 12 11 Parametric curves Catmull clark subdivision Parametric surfaces Interpolating curves 10 9 8 7 6 5 4 3 2 Control points B Spline surfaces Implicit surfaces Bezier surfaces

More information

Dgp _ lecture 2. Curves

Dgp _ lecture 2. Curves Dgp _ lecture 2 Curves Questions? This lecture will be asking questions about curves, their Relationship to surfaces, and how they are used and controlled. Topics of discussion will be: Free form Curves

More information

Splines. Parameterization of a Curve. Curve Representations. Roller coaster. What Do We Need From Curves in Computer Graphics? Modeling Complex Shapes

Splines. Parameterization of a Curve. Curve Representations. Roller coaster. What Do We Need From Curves in Computer Graphics? Modeling Complex Shapes CSCI 420 Computer Graphics Lecture 8 Splines Jernej Barbic University of Southern California Hermite Splines Bezier Splines Catmull-Rom Splines Other Cubic Splines [Angel Ch 12.4-12.12] Roller coaster

More information

In this course we will need a set of techniques to represent curves and surfaces in 2-d and 3-d. Some reasons for this include

In this course we will need a set of techniques to represent curves and surfaces in 2-d and 3-d. Some reasons for this include Parametric Curves and Surfaces In this course we will need a set of techniques to represent curves and surfaces in 2-d and 3-d. Some reasons for this include Describing curves in space that objects move

More information

8.6 Three-Dimensional Cartesian Coordinate System

8.6 Three-Dimensional Cartesian Coordinate System SECTION 8.6 Three-Dimensional Cartesian Coordinate Sstem 69 What ou ll learn about Three-Dimensional Cartesian Coordinates Distance and Midpoint Formulas Equation of a Sphere Planes and Other Surfaces

More information

08 - Designing Approximating Curves

08 - Designing Approximating Curves 08 - Designing Approximating Curves Acknowledgement: Olga Sorkine-Hornung, Alexander Sorkine-Hornung, Ilya Baran Last time Interpolating curves Monomials Lagrange Hermite Different control types Polynomials

More information

Curves and Surfaces Computer Graphics I Lecture 9

Curves and Surfaces Computer Graphics I Lecture 9 15-462 Computer Graphics I Lecture 9 Curves and Surfaces Parametric Representations Cubic Polynomial Forms Hermite Curves Bezier Curves and Surfaces [Angel 10.1-10.6] February 19, 2002 Frank Pfenning Carnegie

More information

Neighbourhood Operations

Neighbourhood Operations Neighbourhood Operations Neighbourhood operations simply operate on a larger neighbourhood o piels than point operations Origin Neighbourhoods are mostly a rectangle around a central piel Any size rectangle

More information

Today s class. Geometric objects and transformations. Informationsteknologi. Wednesday, November 7, 2007 Computer Graphics - Class 5 1

Today s class. Geometric objects and transformations. Informationsteknologi. Wednesday, November 7, 2007 Computer Graphics - Class 5 1 Toda s class Geometric objects and transformations Wednesda, November 7, 27 Computer Graphics - Class 5 Vector operations Review of vector operations needed for working in computer graphics adding two

More information

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

Rendering Curves and Surfaces. Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico Rendering Curves and Surfaces Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico Objectives Introduce methods to draw curves - Approximate

More information

Lesson 2.1 Exercises, pages 90 96

Lesson 2.1 Exercises, pages 90 96 Lesson.1 Eercises, pages 9 96 A. a) Complete the table of values. 1 1 1 1 1. 1 b) For each function in part a, sketch its graph then state its domain and range. For : the domain is ; and the range is.

More information

OUTPUT PRIMITIVES. CEng 477 Introduction to Computer Graphics METU, 2007

OUTPUT PRIMITIVES. CEng 477 Introduction to Computer Graphics METU, 2007 OUTPUT PRIMITIVES CEng 477 Introduction to Computer Graphics METU, 007 Recap: The basic forward projection pipeline: MCS Model Model Modeling Transformations M M 3D World Scene Viewing Transformations

More information

Glossary alternate interior angles absolute value function Example alternate exterior angles Example angle of rotation Example

Glossary alternate interior angles absolute value function Example alternate exterior angles Example angle of rotation Example Glossar A absolute value function An absolute value function is a function that can be written in the form, where is an number or epression. alternate eterior angles alternate interior angles Alternate

More information

Intermediate Algebra. Gregg Waterman Oregon Institute of Technology

Intermediate Algebra. Gregg Waterman Oregon Institute of Technology Intermediate Algebra Gregg Waterman Oregon Institute of Technolog c 2017 Gregg Waterman This work is licensed under the Creative Commons Attribution 4.0 International license. The essence of the license

More information

Curves and Surface I. Angel Ch.10

Curves and Surface I. Angel Ch.10 Curves and Surface I Angel Ch.10 Representation of Curves and Surfaces Piece-wise linear representation is inefficient - line segments to approximate curve - polygon mesh to approximate surfaces - can

More information

8 Project # 2: Bézier curves

8 Project # 2: Bézier curves 8 Project # 2: Bézier curves Let s say that we are given two points, for example the points (1, 1) and (5, 4) shown in Figure 1. The objective of linear interpolation is to define a linear function that

More information

STRAND G: Relations, Functions and Graphs

STRAND G: Relations, Functions and Graphs UNIT G Using Graphs to Solve Equations: Tet STRAND G: Relations, Functions and Graphs G Using Graphs to Solve Equations Tet Contents * * Section G. Solution of Simultaneous Equations b Graphs G. Graphs

More information

Introduction to Computer Graphics

Introduction to Computer Graphics Introduction to Computer Graphics 2016 Spring National Cheng Kung University Instructors: Min-Chun Hu 胡敏君 Shih-Chin Weng 翁士欽 ( 西基電腦動畫 ) Data Representation Curves and Surfaces Limitations of Polygons Inherently

More information

Curves and Surfaces. Computer Graphics COMP 770 (236) Spring Instructor: Brandon Lloyd

Curves and Surfaces. Computer Graphics COMP 770 (236) Spring Instructor: Brandon Lloyd Curves and Surfaces Computer Graphics COMP 770 (236) Spring 2007 Instructor: Brandon Lloyd 4/11/2007 Final projects Surface representations Smooth curves Subdivision Todays Topics 2 Final Project Requirements

More information

Image Reconstruction. Prof. George Wolberg Dept. of Computer Science City College of New York

Image Reconstruction. Prof. George Wolberg Dept. of Computer Science City College of New York Image Reconstruction Pro. George Wolberg Dept. o Computer Science Cit College o New Yor Objectives In this lecture we describe image reconstruction: - Interpolation as convolution - Interpolation ernels

More information

Math 2A Vector Calculus Chapter 11 Test Fall 07 Name Show your work. Don t use a calculator. Write responses on separate paper.

Math 2A Vector Calculus Chapter 11 Test Fall 07 Name Show your work. Don t use a calculator. Write responses on separate paper. Math A Vector Calculus Chapter Test Fall 7 Name Show our work. Don t use a calculator. Write responses on separate paper.. Consider the nice, smooth unction z, whose contour map is shown at right. a. Estimate

More information

Curves D.A. Forsyth, with slides from John Hart

Curves D.A. Forsyth, with slides from John Hart Curves D.A. Forsyth, with slides from John Hart Central issues in modelling Construct families of curves, surfaces and volumes that can represent common objects usefully; are easy to interact with; interaction

More information

Intro to Curves Week 4, Lecture 7

Intro to Curves Week 4, Lecture 7 CS 430/536 Computer Graphics I Intro to Curves Week 4, Lecture 7 David Breen, William Regli and Maxim Peysakhov Geometric and Intelligent Computing Laboratory Department of Computer Science Drexel University

More information

CSE 167: Introduction to Computer Graphics Lecture 12: Bézier Curves. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2013

CSE 167: Introduction to Computer Graphics Lecture 12: Bézier Curves. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2013 CSE 167: Introduction to Computer Graphics Lecture 12: Bézier Curves Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2013 Announcements Homework assignment 5 due tomorrow, Nov

More information

Parametric Curves. University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell

Parametric Curves. University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell Parametric Curves University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell Parametric Representations 3 basic representation strategies: Explicit: y = mx + b Implicit: ax + by + c

More information

A taxonomy of boundary descriptions

A taxonomy of boundary descriptions A taonom of boundar descriptions (1) Model the best fit of a simple mathematical object Conics, conic splines, log-spirals, and other geometric objects Polnomials Circular functions (2) Redescribe the

More information

Interactive Graphics. Lecture 9: Introduction to Spline Curves. Interactive Graphics Lecture 9: Slide 1

Interactive Graphics. Lecture 9: Introduction to Spline Curves. Interactive Graphics Lecture 9: Slide 1 Interactive Graphics Lecture 9: Introduction to Spline Curves Interactive Graphics Lecture 9: Slide 1 Interactive Graphics Lecture 13: Slide 2 Splines The word spline comes from the ship building trade

More information

Interactive Graphics Using Parametric Equations (Day 2)

Interactive Graphics Using Parametric Equations (Day 2) Interactive Graphics Using Parametric Equations (Day 2) Dr. Niels Lobo Computer Science Bezier Curves Google bezier curves`` Casselman's Bezier curves Andysspline Bezier Curves Bezier Photo: Automotive

More information

(Spline, Bezier, B-Spline)

(Spline, Bezier, B-Spline) (Spline, Bezier, B-Spline) Spline Drafting terminology Spline is a flexible strip that is easily flexed to pass through a series of design points (control points) to produce a smooth curve. Spline curve

More information

Computer Graphics. Curves and Surfaces. Hermite/Bezier Curves, (B-)Splines, and NURBS. By Ulf Assarsson

Computer Graphics. Curves and Surfaces. Hermite/Bezier Curves, (B-)Splines, and NURBS. By Ulf Assarsson Computer Graphics Curves and Surfaces Hermite/Bezier Curves, (B-)Splines, and NURBS By Ulf Assarsson Most of the material is originally made by Edward Angel and is adapted to this course by Ulf Assarsson.

More information

UNIT #2 TRANSFORMATIONS OF FUNCTIONS

UNIT #2 TRANSFORMATIONS OF FUNCTIONS Name: Date: UNIT # TRANSFORMATIONS OF FUNCTIONS Part I Questions. The quadratic unction ollowing does,, () has a turning point at have a turning point? 7, 3, 5 5, 8. I g 7 3, then at which o the The structure

More information

Using Characteristics of a Quadratic Function to Describe Its Graph. The graphs of quadratic functions can be described using key characteristics:

Using Characteristics of a Quadratic Function to Describe Its Graph. The graphs of quadratic functions can be described using key characteristics: Chapter Summar Ke Terms standard form of a quadratic function (.1) factored form of a quadratic function (.1) verte form of a quadratic function (.1) concavit of a parabola (.1) reference points (.) transformation

More information

Surface Modeling. Polygon Tables. Types: Generating models: Polygon Surfaces. Polygon surfaces Curved surfaces Volumes. Interactive Procedural

Surface Modeling. Polygon Tables. Types: Generating models: Polygon Surfaces. Polygon surfaces Curved surfaces Volumes. Interactive Procedural Surface Modeling Types: Polygon surfaces Curved surfaces Volumes Generating models: Interactive Procedural Polygon Tables We specify a polygon surface with a set of vertex coordinates and associated attribute

More information

Computer Graphics. Lecture 3 Graphics Output Primitives. Somsak Walairacht, Computer Engineering, KMITL

Computer Graphics. Lecture 3 Graphics Output Primitives. Somsak Walairacht, Computer Engineering, KMITL Computer Graphics Lecture 3 Graphics Output Primitives Somsa Walairacht, Computer Engineering, KMITL Outline Line Drawing Algorithms Circle-, Ellipse-Generating Algorithms Fill-Area Primitives Polgon Fill

More information

Piecewise polynomial interpolation

Piecewise polynomial interpolation Chapter 2 Piecewise polynomial interpolation In ection.6., and in Lab, we learned that it is not a good idea to interpolate unctions by a highorder polynomials at equally spaced points. However, it transpires

More information

Fast, Precise Flattening of Cubic Bézier Segment Offset Curves

Fast, Precise Flattening of Cubic Bézier Segment Offset Curves Fast Precise Flattening o Cubic Bézier Segment Oset Curves THOMAS F. HAIN SRI VENKAT R RACHERLA DAVID D. LANGAN School o CIS Universit o South Alama Mobile AL 6688 USA SL Technologies 7 MLK Jr. Blvd Biloi

More information

Curves. Computer Graphics CSE 167 Lecture 11

Curves. Computer Graphics CSE 167 Lecture 11 Curves Computer Graphics CSE 167 Lecture 11 CSE 167: Computer graphics Polynomial Curves Polynomial functions Bézier Curves Drawing Bézier curves Piecewise Bézier curves Based on slides courtesy of Jurgen

More information

The goal is the definition of points with numbers and primitives with equations or functions. The definition of points with numbers requires a

The goal is the definition of points with numbers and primitives with equations or functions. The definition of points with numbers requires a The goal is the definition of points with numbers and primitives with equations or functions. The definition of points with numbers requires a coordinate system and then the measuring of the point with

More information

12.4 The Ellipse. Standard Form of an Ellipse Centered at (0, 0) (0, b) (0, -b) center

12.4 The Ellipse. Standard Form of an Ellipse Centered at (0, 0) (0, b) (0, -b) center . The Ellipse The net one of our conic sections we would like to discuss is the ellipse. We will start b looking at the ellipse centered at the origin and then move it awa from the origin. Standard Form

More information

Geometric Modeling of Curves

Geometric Modeling of Curves Curves Locus of a point moving with one degree of freedom Locus of a one-dimensional parameter family of point Mathematically defined using: Explicit equations Implicit equations Parametric equations (Hermite,

More information

Need for Parametric Equations

Need for Parametric Equations Curves and Surfaces Curves and Surfaces Need for Parametric Equations Affine Combinations Bernstein Polynomials Bezier Curves and Surfaces Continuity when joining curves B Spline Curves and Surfaces Need

More information

Two Dimensional Viewing

Two Dimensional Viewing Two Dimensional Viewing Dr. S.M. Malaek Assistant: M. Younesi Two Dimensional Viewing Basic Interactive Programming Basic Interactive Programming User controls contents, structure, and appearance of objects

More information

CGT 581 G Geometric Modeling Curves

CGT 581 G Geometric Modeling Curves CGT 581 G Geometric Modeling Curves Bedrich Benes, Ph.D. Purdue University Department of Computer Graphics Technology Curves What is a curve? Mathematical definition 1) The continuous image of an interval

More information

Lesson 8.1 Exercises, pages

Lesson 8.1 Exercises, pages Lesson 8.1 Eercises, pages 1 9 A. Complete each table of values. a) -3 - -1 1 3 3 11 8 5-1 - -7 3 11 8 5 1 7 To complete the table for 3, take the absolute value of each value of 3. b) - -3 - -1 1 3 3

More information

Computergrafik. Matthias Zwicker. Herbst 2010

Computergrafik. Matthias Zwicker. Herbst 2010 Computergrafik Matthias Zwicker Universität Bern Herbst 2010 Today Curves NURBS Surfaces Parametric surfaces Bilinear patch Bicubic Bézier patch Advanced surface modeling Piecewise Bézier curves Each segment

More information

Chapter 3 Image Enhancement in the Spatial Domain

Chapter 3 Image Enhancement in the Spatial Domain Chapter 3 Image Enhancement in the Spatial Domain Yinghua He School o Computer Science and Technology Tianjin University Image enhancement approaches Spatial domain image plane itsel Spatial domain methods

More information

MAPI Computer Vision. Multiple View Geometry

MAPI Computer Vision. Multiple View Geometry MAPI Computer Vision Multiple View Geometry Geometry o Multiple Views 2- and 3- view geometry p p Kpˆ [ K R t]p Geometry o Multiple Views 2- and 3- view geometry Epipolar Geometry The epipolar geometry

More information

Computer Graphics Splines and Curves

Computer Graphics Splines and Curves Computer Graphics 2015 9. Splines and Curves Hongxin Zhang State Key Lab of CAD&CG, Zhejiang University 2015-11-23 About homework 3 - an alternative solution with WebGL - links: - WebGL lessons http://learningwebgl.com/blog/?page_id=1217

More information

2D Spline Curves. CS 4620 Lecture 18

2D Spline Curves. CS 4620 Lecture 18 2D Spline Curves CS 4620 Lecture 18 2014 Steve Marschner 1 Motivation: smoothness In many applications we need smooth shapes that is, without discontinuities So far we can make things with corners (lines,

More information

CSE 167: Introduction to Computer Graphics Lecture #13: Curves. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2017

CSE 167: Introduction to Computer Graphics Lecture #13: Curves. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2017 CSE 167: Introduction to Computer Graphics Lecture #13: Curves Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2017 Announcements Project 4 due Monday Nov 27 at 2pm Next Tuesday:

More information

CHAPTER 1 Graphics Systems and Models 3

CHAPTER 1 Graphics Systems and Models 3 ?????? 1 CHAPTER 1 Graphics Systems and Models 3 1.1 Applications of Computer Graphics 4 1.1.1 Display of Information............. 4 1.1.2 Design.................... 5 1.1.3 Simulation and Animation...........

More information

Lecture 9: Introduction to Spline Curves

Lecture 9: Introduction to Spline Curves Lecture 9: Introduction to Spline Curves Splines are used in graphics to represent smooth curves and surfaces. They use a small set of control points (knots) and a function that generates a curve through

More information

GRAPHICS OUTPUT PRIMITIVES

GRAPHICS OUTPUT PRIMITIVES CHAPTER 3 GRAPHICS OUTPUT PRIMITIVES LINE DRAWING ALGORITHMS DDA Line Algorithm Bresenham Line Algorithm Midpoint Circle Algorithm Midpoint Ellipse Algorithm CG - Chapter-3 LINE DRAWING Line drawing is

More information

Course Title: Computer Graphics Course no: CSC209

Course Title: Computer Graphics Course no: CSC209 Course Title: Computer Graphics Course no: CSC209 Nature of the Course: Theory + Lab Semester: III Full Marks: 60+20+20 Pass Marks: 24 +8+8 Credit Hrs: 3 Course Description: The course coversconcepts of

More information

Computergrafik. Matthias Zwicker Universität Bern Herbst 2016

Computergrafik. Matthias Zwicker Universität Bern Herbst 2016 Computergrafik Matthias Zwicker Universität Bern Herbst 2016 Today Curves NURBS Surfaces Parametric surfaces Bilinear patch Bicubic Bézier patch Advanced surface modeling 2 Piecewise Bézier curves Each

More information

Parametric Curves. University of Texas at Austin CS384G - Computer Graphics

Parametric Curves. University of Texas at Austin CS384G - Computer Graphics Parametric Curves University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell Parametric Representations 3 basic representation strategies: Explicit: y = mx + b Implicit: ax + by + c

More information

What and Why Transformations?

What and Why Transformations? 2D transformations What and Wh Transformations? What? : The geometrical changes of an object from a current state to modified state. Changing an object s position (translation), orientation (rotation)

More information

Transformations of Functions. Shifting Graphs. Similarly, you can obtain the graph of. g x x 2 2 f x 2. Vertical and Horizontal Shifts

Transformations of Functions. Shifting Graphs. Similarly, you can obtain the graph of. g x x 2 2 f x 2. Vertical and Horizontal Shifts 0_007.qd /7/05 : AM Page 7 7 Chapter Functions and Their Graphs.7 Transormations o Functions What ou should learn Use vertical and horizontal shits to sketch graphs o unctions. Use relections to sketch

More information

(Refer Slide Time: 00:02:24 min)

(Refer Slide Time: 00:02:24 min) CAD / CAM Prof. Dr. P. V. Madhusudhan Rao Department of Mechanical Engineering Indian Institute of Technology, Delhi Lecture No. # 9 Parametric Surfaces II So these days, we are discussing the subject

More information

Splines. Connecting the Dots

Splines. Connecting the Dots Splines or: Connecting the Dots Jens Ogniewski Information Coding Group Linköping University Before we start... Some parts won t be part of the exam Basically all that is not described in the book. More

More information

Computer Graphics. Modelling in 2D. 2D primitives. Lines and Polylines. OpenGL polygon primitives. Special polygons

Computer Graphics. Modelling in 2D. 2D primitives. Lines and Polylines. OpenGL polygon primitives. Special polygons Computer Graphics Modelling in D Lecture School of EECS Queen Mar, Universit of London D primitives Digital line algorithms Digital circle algorithms Polgon filling CG - p.hao@qmul.ac.uk D primitives Line

More information

Chapter 4-3D Modeling

Chapter 4-3D Modeling Chapter 4-3D Modeling Polygon Meshes Geometric Primitives Interpolation Curves Levels Of Detail (LOD) Constructive Solid Geometry (CSG) Extrusion & Rotation Volume- and Point-based Graphics 1 The 3D rendering

More information

The Graph of an Equation Graph the following by using a table of values and plotting points.

The Graph of an Equation Graph the following by using a table of values and plotting points. Calculus Preparation - Section 1 Graphs and Models Success in math as well as Calculus is to use a multiple perspective -- graphical, analytical, and numerical. Thanks to Rene Descartes we can represent

More information

Chapter 3 : Computer Animation

Chapter 3 : Computer Animation Chapter 3 : Computer Animation Histor First animation films (Disne) 30 drawings / second animator in chief : ke frames others : secondar drawings Use the computer to interpolate? positions orientations

More information

CSE 167: Introduction to Computer Graphics Lecture #11: Bezier Curves. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2016

CSE 167: Introduction to Computer Graphics Lecture #11: Bezier Curves. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2016 CSE 167: Introduction to Computer Graphics Lecture #11: Bezier Curves Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2016 Announcements Project 3 due tomorrow Midterm 2 next

More information

Composite Bezier Curves. Jim Armstrong Singularity November 2006

Composite Bezier Curves. Jim Armstrong Singularity November 2006 TechNote TN-06-006 Composite Bezier Curves Jim Armstrong Singularit November 006 This is the tenth in a series of TechNotes on the subject of applied curve mathematics in Adobe Flash TM. Each TechNote

More information

Lecture IV Bézier Curves

Lecture IV Bézier Curves Lecture IV Bézier Curves Why Curves? Why Curves? Why Curves? Why Curves? Why Curves? Linear (flat) Curved Easier More pieces Looks ugly Complicated Fewer pieces Looks smooth What is a curve? Intuitively:

More information

Curves & Surfaces. Last Time? Progressive Meshes. Selective Refinement. Adjacency Data Structures. Mesh Simplification. Mesh Simplification

Curves & Surfaces. Last Time? Progressive Meshes. Selective Refinement. Adjacency Data Structures. Mesh Simplification. Mesh Simplification Last Time? Adjacency Data Structures Curves & Surfaces Geometric & topologic information Dynamic allocation Efficiency of access Mesh Simplification edge collapse/vertex split geomorphs progressive transmission

More information

Curve Representation ME761A Instructor in Charge Prof. J. Ramkumar Department of Mechanical Engineering, IIT Kanpur

Curve Representation ME761A Instructor in Charge Prof. J. Ramkumar Department of Mechanical Engineering, IIT Kanpur Curve Representation ME761A Instructor in Charge Prof. J. Ramkumar Department of Mechanical Engineering, IIT Kanpur Email: jrkumar@iitk.ac.in Curve representation 1. Wireframe models There are three types

More information

Name Class Date. subtract 3 from each side. w 5z z 5 2 w p - 9 = = 15 + k = 10m. 10. n =

Name Class Date. subtract 3 from each side. w 5z z 5 2 w p - 9 = = 15 + k = 10m. 10. n = Reteaching Solving Equations To solve an equation that contains a variable, find all of the values of the variable that make the equation true. Use the equalit properties of real numbers and inverse operations

More information

NURBS: Non-Uniform Rational B-Splines AUI Course Denbigh Starkey

NURBS: Non-Uniform Rational B-Splines AUI Course Denbigh Starkey NURBS: Non-Uniform Rational B-Splines AUI Course Denbigh Starkey 1. Background 2 2. Definitions 3 3. Using NURBS to define a circle 4 4. Homogeneous coordinates & control points at infinity 9 5. Constructing

More information

Computer Graphics I Lecture 11

Computer Graphics I Lecture 11 15-462 Computer Graphics I Lecture 11 Midterm Review Assignment 3 Movie Midterm Review Midterm Preview February 26, 2002 Frank Pfenning Carnegie Mellon University http://www.cs.cmu.edu/~fp/courses/graphics/

More information

Properties of Blending Functions

Properties of Blending Functions Chapter 5 Properties of Blending Functions We have just studied how the Bernstein polynomials serve very nicely as blending functions. We have noted that a degree n Bézier curve always begins at P 0 and

More information

Section 9.3: Functions and their Graphs

Section 9.3: Functions and their Graphs Section 9.: Functions and their Graphs Graphs provide a wa of displaing, interpreting, and analzing data in a visual format. In man problems, we will consider two variables. Therefore, we will need to

More information

Intro to Curves Week 1, Lecture 2

Intro to Curves Week 1, Lecture 2 CS 536 Computer Graphics Intro to Curves Week 1, Lecture 2 David Breen, William Regli and Maxim Peysakhov Department of Computer Science Drexel University Outline Math review Introduction to 2D curves

More information