COMPUTER GRAPHICS CHAPTERS CS 482 – Fall 2017 SPLINES

Slides:



Advertisements
Similar presentations
Lecture Notes #11 Curves and Surfaces II
Advertisements

© University of Wisconsin, CS559 Spring 2004
2002 by Jim X. Chen: Bezier Curve Bezier Curve.
COMPUTER GRAPHICS CS 482 – FALL 2014 OCTOBER 8, 2014 SPLINES CUBIC CURVES HERMITE CURVES BÉZIER CURVES B-SPLINES BICUBIC SURFACES SUBDIVISION SURFACES.
Lecture 10 Curves and Surfaces I
Geometric Modeling Notes on Curve and Surface Continuity Parts of Mortenson, Farin, Angel, Hill and others.
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.
Jehee Lee Seoul National University
1 Introduction Curve Modelling Jack van Wijk TU Eindhoven.
Dr. S.M. Malaek Assistant: M. Younesi
1 Curves and Surfaces. 2 Representation of Curves & Surfaces Polygon Meshes Parametric Cubic Curves Parametric Bi-Cubic Surfaces Quadric Surfaces Specialized.
MIT EECS 6.837, Durand and Cutler Curves & Surfaces.
Informationsteknologi Monday, December 10, 2007Computer Graphics - Class 161 Today’s class Curve fitting Evaluators Surfaces.
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2007 Tamara Munzner Curves Week 12, Wed Apr.
CSCE 441 Computer Graphics: Keyframe Animation/Smooth Curves Jinxiang Chai.
Geometric Modeling Surfaces Mortenson Chapter 6 and Angel Chapter 9.
Curves Mortenson Chapter 2-5 and Angel Chapter 9
Subdivision Primer CS426, 2000 Robert Osada [DeRose 2000]
Modelling: Curves Week 11, Wed Mar 23
RASTER CONVERSION ALGORITHMS FOR CURVES: 2D SPLINES 2D Splines - Bézier curves - Spline curves.
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.
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
Curves and Surfaces (cont’) Amy Zhang. Conversion between Representations  Example: Convert a curve from a cubic B-spline curve to the Bézier form:
Curve Modeling Bézier Curves
Bresenham’s Algorithm. Line Drawing Reference: Edward Angel’s book: –6 th Ed. Sections 6.8 and 6.9 Assuming: –Clipped (to fall within the window) –2D.
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.
V. Space Curves Types of curves Explicit Implicit Parametric.
Curves.
Review of Interpolation. A method of constructing a function that crosses through a discrete set of known data points.
Curves. First of all… You may ask yourselves “What did those papers have to do with computer graphics?” –Valid question Answer: I thought they were cool,
Chapter VI Parametric Curves and Surfaces
INTERPOLATION & APPROXIMATION. Curve algorithm General curve shape may be generated using method of –Interpolation (also known as curve fitting) Curve.
June D Object Representation Shmuel Wimer Bar Ilan Univ., School of Engineering.
COLLEGE OF ENGINEERING UNIVERSITY OF PORTO COMPUTER GRAPHICS AND INTERFACES / GRAPHICS SYSTEMS JGB / AAS Representation of Curves and Surfaces Graphics.
Basic Theory (for curve 02). 1.3 Parametric Curves  The main aim of computer graphics is to display an arbitrary surface so that it looks real.  The.
Representation of Curves & Surfaces Prof. Lizhuang Ma Shanghai Jiao Tong University.
CSCE 441 Computer Graphics: Keyframe Animation/Smooth Curves Jinxiang Chai.
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-
Interactive Graphics Lecture 10: Slide 1 Interactive Computer Graphics Lecture 10 Introduction to Surface Construction.
Computing & Information Sciences Kansas State University Lecture 31 of 42CIS 636/736: (Introduction to) Computer Graphics Lecture 32 of 42 Wednesday, 11.
CSCE 441: Keyframe Animation/Smooth Curves (Cont.) Jinxiang Chai.
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.
Splines Sang Il Park Sejong University. Particle Motion A curve in 3-dimensional space World coordinates.
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.
Object Modeling: Curves and Surfaces CEng 477 Introduction to Computer Graphics.
Introduction to Parametric Curve and Surface Modeling.
CSCI480/582 Lecture 9 Chap.2.2 Cubic Splines – Hermit and Bezier Feb, 11, 2009.
© University of Wisconsin, CS559 Spring 2004
CSCE 441 Computer Graphics: Keyframe Animation/Smooth Curves
CS5500 Computer Graphics May 11, 2006
Curve & Surface.
CSCE 441 Computer Graphics: Keyframe Animation/Smooth Curves
© University of Wisconsin, CS559 Fall 2004
© University of Wisconsin, CS559 Fall 2004
© University of Wisconsin, CS559 Spring 2004
Chapter XVII Parametric Curves and Surfaces
Curves and Surfaces.
Parametric Line equations
Introduction to Parametric Curve and Surface Modeling
Type to enter a caption. Computer Graphics Week 10 Lecture 1.
Overview June 9- B-Spline Curves June 16- NURBS Curves
Presentation transcript:

COMPUTER GRAPHICS CHAPTERS 22-23 CS 482 – Fall 2017 SPLINES CUBIC CURVES HERMITE CURVES BéZIER CURVES B-SPLINES BICUBIC SURFACES SUBDIVISION SURFACES

CUBIC CURVES LINEAR LIMITATIONS Straight line segments may be used to approximate curves, but... Either the approximation has too many sharp angles, or... …the number of line segments required is prohibitively large. CS 482 – Fall 2017 CHAPTERS 22-23: SPLINES PAGE 181

CUBIC CURVES PARAMETERIZED CUBICS Cubics are the lowest order polynomials capable of illustrating maxima, minima, concavity, and inflection points. Notice that each equation has four unknowns, so four pieces of information would define each cubic equation! By defining the cubic curve parametrically, restricting the parameter t to the [0,1] interval, we obtain a concise structure to contain a good approximation to a desired curve. CS 482 – Fall 2017 CHAPTERS 22-23: SPLINES PAGE 182

HERMITE CURVES ENDPOINTS & TANGENT VECTORS The Hermite form of the cubic polynomial curve is constrained by the endpoints (P0 and P1) and the tangent vectors at the endpoints (P0´ and P1´). P0´ P0 P1 P1´ Similar solutions for the y- and z-coordinates yield: CS 482 – Fall 2017 CHAPTERS 22-23: SPLINES PAGE 183

HERMITE CURVES EXAMPLES The big problem with the Hermite approach is the requirement that the tangent vectors at the endpoints must be specified in advance. CS 482 – Fall 2017 CHAPTERS 22-23: SPLINES PAGE 184

BéZIER CURVES ENDPOINTS & CONTROL POINTS P2 The Bézier form of the cubic polynomial curve indirectly specifies the tangent vectors at endpoints P1 and P4 by specifying two intermediate points (P2 and P3) that are not on the curve. P2 P4 P1 P3 Calculations similar to those derived for the Hermite form yield: CS 482 – Fall 2017 CHAPTERS 22-23: SPLINES PAGE 185

BéZIER CURVES FIRST-ORDER DISCONTINUITY The Bézier form has zero-order continuity, but it lacks first-order continuity (unless the triple of vertices around the “knot” happen to be collinear). Discontinuous First Derivative P7 Discontinuous First Derivative P5 P4 P8 P6 P2 P3 P9 P10 P1 CS 482 – Fall 2017 CHAPTERS 22-23: SPLINES PAGE 186

B-SPLINES CONTROL POINTS ONLY To ensure first-order (and even second-order) continuity at the “knots” adjoining consecutive cubic curve segments, a B-spline approach is taken, with the drawback that the curve passes through none of the control points. P2 P4 P1 P3 CS 482 – Fall 2017 CHAPTERS 22-23: SPLINES PAGE 187

SECOND-ORDER CONTINUITY B-SPLINES SECOND-ORDER CONTINUITY P7 P5 P4 P8 P6 P2 P3 P9 P11 P10 P1 The B-spline knots have first-order continuity (i.e., smooth tangents) and second-order continuity (i.e., smooth concavity), but require three times as many parameterizations. P0 CS 482 – Fall 2017 CHAPTERS 22-23: SPLINES PAGE 188

BICUBIC SURFACES APPROXIMATING SMOOTH SURFACES Line segments may be used to approximate surface boundaries, but... 100 Triangles 1000 Triangles 69,451 Triangles Determining the segment endpoint coordinates is a big job! It takes a lot of triangles to yield a decent image, even with shading! The resulting storage and processing costs could be prohibitive! CS 482 – Fall 2017 CHAPTERS 22-23: SPLINES PAGE 189

BICUBIC SURFACES PATCHES Patches made up of orthogonal cubic curves can be used to approximate surfaces. Hermite patches require partial derivatives at every vertex. Bézier patches require collinearity between adjacent patches. B-spline patches require nine times as many parameterizations. CS 482 – Fall 2017 CHAPTERS 22-23: SPLINES PAGE 190

Subdivided Bézier Curves SUBDIVISION SURFACES USING BEZIER PATCHES Patches can be refined by creating a larger grid of control points from the original grid of control points. Original Bézier Curve P3 L1 = P1 R4 = P4 P2 R2 L4=R1 L3 L2 = ½(P1+P2) R3 = ½(P3+P4) R3 L2 L3 = ½(L2+½(P2+P3)) R2 = ½(R3+½(P2+P3)) Subdivided Bézier Curves P4 R4 L4 = R1 = ½(L3+R2) L1 P1 CS 482 – Fall 2017 CHAPTERS 22-23: SPLINES PAGE 191

SUBDIVISION SURFACES APPLICATIONS Reverse engineering on sparse data (e.g., limited medical scans) Controlling surface quality according to needs and processing abilities Transmission and compression of 3D mesh data CS 482 – Fall 2017 CHAPTERS 22-23: SPLINES PAGE 192