Computer Graphics Representing Curves and Surfaces.

Slides:



Advertisements
Similar presentations
Lecture 14 Curves and Surfaces II
Advertisements

Curves Jim Van Verth Essential Math for Games Animation Problem: want to replay stored set of transformations  Generated by.
Interpolating curves.
Lecture Notes #11 Curves and Surfaces II
Computer Graphics (Spring 2008) COMS 4160, Lecture 6: Curves 1
Advanced Computer Graphics (Spring 2005) COMS 4162, Lecture 13: NURBs, Spline Surfaces Ravi Ramamoorthi Some material.
Overview June 9- B-Spline Curves June 16- NURBS Curves June 30- B-Spline Surfaces.
© University of Wisconsin, CS559 Spring 2004
Jehee Lee Seoul National University
B-Spline Blending Functions
1 Introduction Curve Modelling Jack van Wijk TU Eindhoven.
1 Curves and Surfaces. 2 Representation of Curves & Surfaces Polygon Meshes Parametric Cubic Curves Parametric Bi-Cubic Surfaces Quadric Surfaces Specialized.
CS CS 175 – Week 9 B-Splines Blossoming, Bézier Splines.
Informationsteknologi Monday, December 10, 2007Computer Graphics - Class 161 Today’s class Curve fitting Evaluators Surfaces.
Rational Bezier Curves
09/04/02 Dinesh Manocha, COMP258 Bezier Curves Interpolating curve Polynomial or rational parametrization using Bernstein basis functions Use of control.
1cs426-winter-2008 Notes  Ian Mitchell is running a MATLAB tutorial, Tuesday January 15, 5pm-7pm, DMP 110 We won’t be directly using MATLAB in this course,
Advanced Computer Graphics (Spring 2005) COMS 4162, Lecture 12: Spline Curves (review) Ravi Ramamoorthi Most material.
Modelling. Outline  Modelling methods  Editing models – adding detail  Polygonal models  Representing curves  Patched surfaces.
Modeling of curves Needs a ways of representing curves: Reproducible - the representation should give the same curve every time; Computationally Quick;
1 Lecture 13 Modeling Curved Lines and Surfaces. 2 Types of Surfaces Ruled Surfaces B-Splines and Bezier Curves Surfaces of Revolution.
Geometric Modeling Surfaces Mortenson Chapter 6 and Angel Chapter 9.
Cubic Bezier and B-Spline Curves
Curves Mortenson Chapter 2-5 and Angel Chapter 9
Bezier and Spline Curves and Surfaces Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico.
ENDS 375 Foundations of Visualization Geometric Representation 10/5/04.
Modelling: Curves Week 11, Wed Mar 23
University of British Columbia CPSC 414 Computer Graphics © Tamara Munzner 1 Curves Week 13, Mon 24 Nov 2003.
Bezier and Spline Curves and Surfaces CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel.
Curve Surfaces June 4, Examples of Curve Surfaces Spheres The body of a car Almost everything in nature.
CS 376 Introduction to Computer Graphics 04 / 27 / 2007 Instructor: Michael Eckmann.
Splines III – Bézier Curves
11/19/02 (c) 2002, University of Wisconsin, CS 559 Last Time Many, many modeling techniques –Polygon meshes –Parametric instancing –Hierarchical modeling.
Computer Graphics Through OpenGL: From Theory to Experiments, Second Edition Chapter 16.
V. Space Curves Types of curves Explicit Implicit Parametric.
Introduction to Computer Graphics with WebGL
CS 445 / 645 Introduction to Computer Graphics Lecture 23 Bézier Curves Lecture 23 Bézier Curves.
Chapter VI Parametric Curves and Surfaces
CS 445/645 Fall 2001 Splines/Film/Animation. Final Exam Thursday, December 13 th from 7 – 10 p.m. –Room Olsson 011 You may use one sheet of notes (8.5.
Splines IV – B-spline Curves based on: Michael Gleicher: Curves, chapter 15 in Fundamentals of Computer Graphics, 3 rd ed. (Shirley & Marschner) Slides.
Parametric Surfaces Define points on the surface in terms of two parameters Simplest case: bilinear interpolation s t s x(s,t)x(s,t) P 0,0 P 1,0 P 1,1.
Keyframing and Splines Jehee Lee Seoul National University.
CS 376 Introduction to Computer Graphics 04 / 25 / 2007 Instructor: Michael Eckmann.
CS 445 / 645 Introduction to Computer Graphics Lecture 23 Bézier Curves Lecture 23 Bézier Curves.
Representation of Curves & Surfaces Prof. Lizhuang Ma Shanghai Jiao Tong University.
Curves: ch 4 of McConnell General problem with constructing curves: how to create curves that are “smooth” CAD problem Curves could be composed of segments.
11/26/02(C) University of Wisconsin Last Time BSplines.
Parametric Curves CS 318 Interactive Computer Graphics John C. Hart.
(c) 2002 University of Wisconsin
1 CS 430/536 Computer Graphics I B-Splines and NURBS Week 5, Lecture 9 David Breen, William Regli and Maxim Peysakhov Geometric and Intelligent Computing.
Splines Sang Il Park Sejong University. Particle Motion A curve in 3-dimensional space World coordinates.
CS 325 Computer Graphics 04 / 30 / 2010 Instructor: Michael Eckmann.
Computing & Information Sciences Kansas State University Lecture 30 of 42CIS 636/736: (Introduction to) Computer Graphics Lecture 30 of 42 Wednesday, 09.
Rendering Bezier Curves (1) Evaluate the curve at a fixed set of parameter values and join the points with straight lines Advantage: Very simple Disadvantages:
Kansas State University Department of Computing and Information Sciences CIS 736: Computer Graphics Lecture 13 of 42 Wednesday, 15 February 2006 William.
Curves University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2013 Tamara Munzner.
CS552: Computer Graphics Lecture 19: Bezier Curves.
Introduction to Parametric Curve and Surface Modeling.
© University of Wisconsin, CS559 Spring 2004
Introduction to Parametric Curve and Surface Modeling
Representation of Curves & Surfaces
CS 445 / 645 Introduction to Computer Graphics
(Spline, Bezier, B-Spline)
Chapter 10-2: Curves.
© University of Wisconsin, CS559 Fall 2004
© University of Wisconsin, CS559 Fall 2004
© University of Wisconsin, CS559 Spring 2004
CSCI 440 Computer Graphics
Introduction to Parametric Curve and Surface Modeling
Overview June 9- B-Spline Curves June 16- NURBS Curves
Presentation transcript:

Computer Graphics Representing Curves and Surfaces

Review eq(11.5)

Review eq(11.6/11.7)

Review eq(11.8)

Review eq(11.9)

Review eq(11.10)

Review Blending function (also called ‘Basis’ function)

Hermite Curves 以曲線端點 P 1.P 4 以及端點斜率 R 1.R 4 求曲線方程式

Hermite Curves eq(11.12)

Hermite Curves eq(11.13)

Hermite Curves eq(11.14)

Hermite Curves eq(11.15)

Hermite Curves

Hermite Curves eq(11.16)

Hermite Curves eq(11.17)

Hermite Curves eq(11.18)

Hermite Curves eq(11.19)

Hermite Curves eq(11.20)

Hermite Curves eq(11.21)

Hermite Curve

Hermite Curve eq(11.22)

Hermite Curve eq(11.23) Reduce 6 multiplies and 3 additions to 3 multiplies and 3 additions.

Bezier Curves 以曲線端點 P 1.P 4 以及控制點 P 2.P 3 求曲線方程式 曲線端點斜率為

Bezier Curves eq(11.24)

Bezier Curves eq(11.25)

Bezier Curves eq(11.26)

Bezier Curves eq(11.27/11.28)

Bezier Curves eq(11.29)

Bezier Curves

Define n as the order of Bezier curves. Define i as control point.

Bezier Curves

De Casteljau iterations

Bezier Curves Linear Bezier splines Control points: P 0, P 1

Bezier Curves Quadratic Bezier splines Control points: P 0, P 1, P 2

Bezier Curves Quadratic Bezier splines Control points: P 0, P 1, P 2

Bezier Curves Cubic Bezier splines Control points: P 0, P 1, P 2, P 3

Bezier Curves Cubic Bezier splines Control points: P 0, P 1, P 2, P 3

Bezier Curves Cubic Bezier splines Control points: P 0, P 1, P 2, P 3

Bezier Curves

Spline Natural cubic spline C 0, C 1, C 2 continuous. Interpolates(passes through) the control points. Moving any one control point affects the entire curve.

Spline B-spline Local control. Moving a control point affects only a small part of a curve. Do not interpolate their control points. Sharing control points between segments.

B-spline m+1 control points P 0, …, P m, m≥3 m-2 curve segments Q 3, Q 4, …, Q m For each i≥4, there is a join point or knot between Q i-1 and Q i at the parameter value t i.

B-spline eq(11.43/11.44)

B-spline eq(11.44)

Uniform Nonrational B-spline ‘Uniform’ means that the knots are spaced at equal intervals of the parameter t. ‘Nonrational’ is used to distinguish these splines from rational cubic polynomial curves, see Section We assume that t 3 =0 and the interval t i+1 -t i =1

Uniform Nonrational B-spline eq(11.32/11.33/11.34)

Uniform Nonrational B-spline eq(11.35)

Uniform Nonrational B-spline eq(11.36)

Uniform Nonrational B-spline eq(11.37)

Uniform Nonrational B-spline eq(11.38)

Uniform Nonrational B-spline

Uniform Nonrational B-spline eq(11.39/11.40/11.41)

Uniform Nonrational B-spline eq(11.42) The curve can be forced to be interpolate specific points by replicating control points.

Nonuniform Nonrational B-spline Parameter interval between successive knot values need not be uniform. Blending functions are no longer the same for each interval. Continuity at selected join points can be reduced from C 2 to C 1 to C 0 to none. When the curve is C 0, the curve interpolates a control point.

Nonuniform Nonrational B-spline If the continuity is reduced to C 0, then the curve interpolates a control point, but without the undesirable effect of uniform B-splines, where the curve segments on either side of the interpolated control point are straight lines.

Nonuniform Nonrational B-spline m+1 control points P 0, P 1, …, P m nondecreasing sequence of knot values t 0, t 1, …, t m+4

Nonuniform Nonrational B-spline

Nonuniform Rational Cubic Polynomial Curve

Advantages They are invariant under rotation, scaling, translation and perspective transformations of the control points. They can define precisely and of the conic sections.

Catmull-Rom spline

Catmull-Rom spline eq(11.47)

Subdividing Curves Bezier Curve

Subdividing Curves

Uniform B-spline Curve Doubling: Do k subdivision steps (for k-degree B-spline)

Subdividing Curves

Conversion eq(11.56)

Conversion eq(11.57/11.58)

Drawing Curves eq(11.59/11.60/11.61)

Drawing Curves eq(11.62/11.63)

Drawing Curves eq(11.64/11.65/11.66/11.67)

Drawing Curves eq(11.68/11.69/11.70)

Drawing Curves eq(11.71/11.72)

Comparison

Parametric Bicubic Surfaces eq(11.73)

Parametric Bicubic Surfaces

Parametric Bicubic Surfaces eq(11.74/11.75)

Parametric Bicubic Surfaces eq(11.76)

Hermite Surfaces eq(11.77)

Hermite Surfaces

Hermite Surfaces eq(11.78)

Hermite Surfaces eq(11.79/11.80/11.81)

Hermite Surfaces eq(11.82/11.83)

Hermite Surfaces eq(11.84)

Hermite Surfaces

Normals to Surfaces eq(11.88/11.89)

Normals to Surfaces eq(11.90)