Slide 127 October 1999CS 318 - Computer Graphics (Top Changwatchai) Review of Spline Concepts Sections 10-6 to 10-13 in Hearn & Baker Splines can be 2D.

Slides:



Advertisements
Similar presentations
2002 by Jim X. Chen: Bezier Curve Bezier Curve.
Advertisements

Lecture 10 Curves and Surfaces I
Geometric Modeling Notes on Curve and Surface Continuity Parts of Mortenson, Farin, Angel, Hill and others.
Cubic Curves CSE167: Computer Graphics Instructor: Steve Rotenberg UCSD, Fall 2006.
ICS 415 Computer Graphics Bézier Splines (Chapter 8)
CS 445/645 Fall 2001 Hermite and Bézier Splines. Specifying Curves Control Points –A set of points that influence the curve’s shape Knots –Control points.
© University of Wisconsin, CS559 Spring 2004
Dr. S.M. Malaek Assistant: M. Younesi
08/30/00 Dinesh Manocha, COMP258 Hermite Curves A mathematical representation as a link between the algebraic & geometric form Defined by specifying the.
1 Curves and Surfaces. 2 Representation of Curves & Surfaces Polygon Meshes Parametric Cubic Curves Parametric Bi-Cubic Surfaces Quadric Surfaces Specialized.
Lecture 29 of 42 Bezier Curves and Splines Wednesday, 02 April 2008
Splines II – Interpolating Curves
Curves Chiew-Lan Tai.
Curves Chiew-Lan Tai. Curves 2 Reading Required Hearn & Baker, 8-8 – 8-10, 8-12 Foley, 11.2.
1 Lecture 13 Modeling Curved Lines and Surfaces. 2 Types of Surfaces Ruled Surfaces B-Splines and Bezier Curves Surfaces of Revolution.
Designing Parametric Cubic Curves Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico.
Geometric Modeling Surfaces Mortenson Chapter 6 and Angel Chapter 9.
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.
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.
COEN Computer Graphics I
Chapter 10: Curves and Surfaces Part 1 E. Angel and D. Shreiner: Interactive Computer Graphics 6E © Addison-Wesley Mohan Sridharan Based on Slides.
Designing Parametric Cubic Curves
Curve Surfaces June 4, Examples of Curve Surfaces Spheres The body of a car Almost everything in nature.
Splines III – Bézier Curves
Curve Modeling 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.
A D V A N C E D C O M P U T E R G R A P H I C S CMSC 635 January 15, 2013 Spline curves 1/23 Curves and Surfaces.
CS 376 Introduction to Computer Graphics 04 / 23 / 2007 Instructor: Michael Eckmann.
(Spline, Bezier, B-Spline)
V. Space Curves Types of curves Explicit Implicit Parametric.
Spline Representations
CS 445 / 645 Introduction to Computer Graphics Lecture 23 Bézier Curves Lecture 23 Bézier Curves.
1 Dr. Scott Schaefer Smooth Curves. 2/109 Smooth Curves Interpolation  Interpolation through Linear Algebra  Lagrange interpolation Bezier curves B-spline.
Curves.
Quadratic Surfaces. SPLINE REPRESENTATIONS a spline is a flexible strip used to produce a smooth curve through a designated set of points. We.
Chapter 4 Representations of Curves and Surfaces.
June D Object Representation Shmuel Wimer Bar Ilan Univ., School of Engineering.
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.
CS559: Computer Graphics Lecture 19: Curves Li Zhang Spring 2008.
CS 376 Introduction to Computer Graphics 04 / 25 / 2007 Instructor: Michael Eckmann.
Representation of Curves & Surfaces Prof. Lizhuang Ma Shanghai Jiao Tong University.
04/18/02(c) 2002 University of Wisconsin Last Time Hermite Curves Bezier Curves.
L5 – Curves in GIS NGEN06 & TEK230: Algorithms in Geographical Information Systems by: Sadegh Jamali (source: Lecture notes in GIS, Lars Harrie) 1 L5-
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.
Greg Humphreys CS445: Intro Graphics University of Virginia, Fall 2003 Parametric Curves & Surfaces Greg Humphreys University of Virginia CS 445, Spring.
CSCE 441: Keyframe Animation/Smooth Curves (Cont.) Jinxiang Chai.
Slide 129 October 1999CS Computer Graphics (Top Changwatchai) Bézier Curves - Results of Derivation Tangents at endpoints are equal to endpoint slopes.
Designing Parametric Cubic Curves 1. 2 Objectives Introduce types of curves ­Interpolating ­Hermite ­Bezier ­B-spline Analyze their performance.
1 Graphics CSCI 343, Fall 2015 Lecture 34 Curves and Surfaces III.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
CS 325 Computer Graphics 04 / 30 / 2010 Instructor: Michael Eckmann.
CS559 – Curves Lecture These are course notes (not used as slides) Written by Mike Gleicher, Oct Updates Oct 2006, 2007 Updates Oct 2008 © 2005 Michael.
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:
Curves University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2013 Tamara Munzner.
CS552: Computer Graphics Lecture 19: Bezier Curves.
Object Modeling: Curves and Surfaces CEng 477 Introduction to Computer Graphics.
Introduction to Parametric Curve and Surface Modeling.
© University of Wisconsin, CS559 Spring 2004
CS5500 Computer Graphics May 11, 2006
Representation of Curves & Surfaces
(Spline, Bezier, B-Spline)
Chapter 10-2: Curves.
Parametric Line equations
UNIT-5 Curves and Surfaces.
Introduction to Parametric Curve and Surface Modeling
Type to enter a caption. Computer Graphics Week 10 Lecture 1.
Type to enter a caption. Computer Graphics Week 10 Lecture 2.
Presentation transcript:

Slide 127 October 1999CS Computer Graphics (Top Changwatchai) Review of Spline Concepts Sections 10-6 to in Hearn & Baker Splines can be 2D or 3D Control points Interpolation vs. approximation Convex hull Continuity conditions Local vs. global control Three methods of specifying splines Types of splines –Cubic –Bézier –B-splines –Other

Slide 227 October 1999CS Computer Graphics (Top Changwatchai) Spline Basics (1/3) Definitions –Textbook calls a spline curve “any composite curve formed with polynomial sections satisfying specified continuity conditions at the boundary of the pieces” - can be 2D or 3D –Spline surfaces formed from two sets of orthogonal spline curves –From now on “spline” refers to spline curve Control points –Used to specify spline curves –Two ways to fit splines Interpolation - curve passes through each control point Approximation - curve does not necessarily pass through any control point Convex hull –minimum convex polygon boundary that encloses set of control points

Slide 327 October 1999CS Computer Graphics (Top Changwatchai) Spline Basics (2/3) Splines are specified using parametric equations –P(u) = [ x(u) y(u) z(u) ]- row vector –P(u) = Au 3 + Bu 2 + Cu + D- each of A, B, C, and D are row vectors –From now on, we treat P as scalar: P(u) = au 3 + bu 2 + cu + d –Unless otherwise specified, all derivatives are with respect to parameter u Continuity conditions (between two curve sections) –parametric C 0 - same point C 1 - tangent lines (1 st derivatives) equal C st and 2 nd derivatives equal etc –geometric G 0 = C 0 parametric derivatives proportional (in same direction) but not necessarily equal: –G 1, G 2, etc –note there exists a case where you can have G 1 continuity without C 1 continuity Local vs. global control –Global control - if one point altered, the entire curve affected –Local control - only that curve section is affected

Slide 427 October 1999CS Computer Graphics (Top Changwatchai) Spline Basics (3/3) Recall from previous slide –P(u) = au 3 + bu 2 + cu + d We can write as: –P(u)= U  CoU = [ u 3 u 2 u 1 ]Co = [ a b c d ] T = U  M spline  M geom = B  M geom –U is the 1  4 parameter vector –Co is the 4  1 coefficient matrix Three methods of spline specification –Boundary conditions Description given in English Actual values placed in 4  1 geometry vector M geom –Basis matrix M spline is the 4  4 basis matrix This is constant for a given type of spline Co = M spline  M geom –Blending functions B is a 1  4 matrix representing the blending functions B = U  M spline = [ F 0 (u) F 1 (u) F 2 (u) F 3 (u) ]

Slide 527 October 1999CS Computer Graphics (Top Changwatchai) Types of Splines Why cubic? –Higher order less stable, more complex to calculate –Lower order don’t look as good –Cubic is smallest that specifies endpoints and derivatives, and which is nonplanar in 3D Cubic splines (interpolation) –Natural –Hermite –Cardinal –Kochanek-Bartels Bézier (approximation) B-splines (approximation) Other

Slide 627 October 1999CS Computer Graphics (Top Changwatchai) Review of Cubic Splines Features –Cubic splines interpolate - passes through every control point –We fit one curve section at a time between each pair of successive control points (u=0 to u=1) –We have 4 coefficients (cubic) so for n curve sections need 4n boundary conditions Natural –Boundary conditions: endpoints on control points, 1st and 2nd parametric derivatives match between adjacent curve sections –Bad: exhibits global control Hermite –Boundary conditions: endpoints on control points, parametric slope specified at control points –Exhibits local control, but may be inconvenient to specify slopes Cardinal –Same as Hermite, but we compute tangents from neighboring control points –Has tension parameter t Kochanek-Bartels –Same as cardinal but adds two additional parameters, bias and continuity –Good for modelling abrupt changes

Slide 727 October 1999CS Computer Graphics (Top Changwatchai) Bézier Curves - Features Approximation Global control Number of control points determines degree of Bézier curve Easy to implement and calculate recursively Always passes through first and last control points Lies within convex hull Easy to connect sections together

Slide 827 October 1999CS Computer Graphics (Top Changwatchai) Note from 27 October lecture In class we went over how to derive the following boundary conditions from the definition of Bézier curve: P(0) = p 0 P(1) = p n P'(0) = -np 0 + np 1 P'(1) = -np n-1 + np n Dr. Chawla points out that there is a simpler (though equivalent) way to view our derivation: For u = 0, we see that every term except the first has a u and therefore goes to 0. For u = 1, we see that every term except the last has a (1-u) and therefore goes to 0. So we have: Taking the parametric derivative, we get: For u = 0, we see that all terms except the first two have u’s and therefore go to 0. For u = 1, we see that all terms except the last two have (1-u)’s and therefore go to 0. So we have: