COMPUTER GRAPHICS CS 482 – FALL 2014 OCTOBER 8, 2014 SPLINES CUBIC CURVES HERMITE CURVES BÉZIER CURVES B-SPLINES BICUBIC SURFACES SUBDIVISION SURFACES.

Slides:



Advertisements
Similar presentations
Interpolating curves.
Advertisements

Lecture Notes #11 Curves and Surfaces II
© University of Wisconsin, CS559 Spring 2004
2002 by Jim X. Chen: Bezier Curve Bezier Curve.
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.
Slide 127 October 1999CS Computer Graphics (Top Changwatchai) Review of Spline Concepts Sections 10-6 to in Hearn & Baker Splines can be 2D.
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.
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.
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
1 Representing Curves and Surfaces. 2 Introduction We need smooth curves and surfaces in many applications: –model real world objects –computer-aided.
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:
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.
19/13/ :20 UML Graphics II Parametric Curves and Surfaces Session 3.
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.
Quadratic Surfaces. SPLINE REPRESENTATIONS a spline is a flexible strip used to produce a smooth curve through a designated set of points. We.
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.
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.
Computer Graphics Representing Curves and Surfaces.
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.
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 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.
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.
CSCI480/582 Lecture 9 Chap.2.2 Cubic Splines – Hermit and Bezier Feb, 11, 2009.
COMPUTER GRAPHICS CHAPTERS CS 482 – Fall 2017 SPLINES
CS5500 Computer Graphics May 11, 2006
Curve & Surface.
© University of Wisconsin, CS559 Fall 2004
© University of Wisconsin, CS559 Fall 2004
© University of Wisconsin, CS559 Spring 2004
Parametric Line equations
Introduction to Parametric Curve and Surface Modeling
Overview June 9- B-Spline Curves June 16- NURBS Curves
Presentation transcript:

COMPUTER GRAPHICS CS 482 – FALL 2014 OCTOBER 8, 2014 SPLINES CUBIC CURVES HERMITE CURVES BÉZIER CURVES B-SPLINES BICUBIC SURFACES SUBDIVISION SURFACES

CUBIC CURVES CS 482 – FALL 2014 LINEAR LIMITATIONS OCTOBER 8, 2014: SPLINESPAGE 162 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.

CUBIC CURVES CS 482 – FALL 2014 PARAMETERIZED CUBICS OCTOBER 8, 2014: SPLINESPAGE 163 NOTICE THAT EACH EQUATION HAS FOUR UNKNOWNS, SO FOUR PIECES OF INFORMATION WOULD DEFINE EACH CUBIC EQUATION! CUBICS ARE THE LOWEST ORDER POLYNOMIALS CAPABLE OF ILLUSTRATING MAXIMA, MINIMA, CONCAVITY, AND INFLECTION POINTS. 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.

HERMITE CURVES CS 482 – FALL 2014 ENDPOINTS & TANGENT VECTORS OCTOBER 8, 2014: SPLINESPAGE 164 THE HERMITE FORM OF THE CUBIC POLYNOMIAL CURVE IS CONSTRAINED BY THE ENDPOINTS (P 0 AND P 1 ) AND THE TANGENT VECTORS AT THE ENDPOINTS (P 0 ´ AND P 1 ´). P0P0P0P0 P1P1P1P1 P0´P0´ P1´P1´ SIMILAR SOLUTIONS FOR THE Y- AND Z- COORDINATES YIELD:

HERMITE CURVES CS 482 – FALL 2014 EXAMPLES OCTOBER 8, 2014: SPLINESPAGE 165 P0P0P0P0 P1P1P1P1 P0´P0´ P1´P1´ P0P0P0P0 P1P1P1P1 P0´P0´ P1´P1´ P0P0P0P0 P1P1P1P1 P0´P0´ P1´P1´ P0P0P0P0 P1P1P1P1 P0´P0´ P1´P1´ P1P1P1P1 P0P0P0P0 P1´P1´ P0´P0´ THE BIG PROBLEM WITH THE HERMITE APPROACH IS THE REQUIREMENT THAT THE TANGENT VECTORS AT THE ENDPOINTS MUST BE SPECIFIED IN ADVANCE.

BÉZIER CURVES CS 482 – FALL 2014 ENDPOINTS & CONTROL POINTS OCTOBER 8, 2014: SPLINESPAGE 166 THE BÉZIER FORM OF THE CUBIC POLYNOMIAL CURVE INDIRECTLY SPECIFIES THE TANGENT VECTORS AT ENDPOINTS P 1 AND P 4 BY SPECIFYING TWO INTERMEDIATE POINTS (P 2 AND P 3 ) THAT ARE NOT ON THE CURVE. P1P1P1P1 P4P4P4P4 CALCULATIONS SIMILAR TO THOSE DERIVED FOR THE HERMITE FORM YIELD: P2P2P2P2 P3P3P3P3

BÉZIER CURVES CS 482 – FALL 2014 FIRST-ORDER DISCONTINUITY OCTOBER 8, 2014: SPLINESPAGE 167 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 P3P3P3P3 P1P1P1P1 P2P2P2P2 P4P4P4P4 P5P5P5P5 P6P6P6P6 P7P7P7P7 P8P8P8P8 P9P9P9P9 P 10

B-SPLINES CS 482 – FALL 2014 CONTROL POINTS ONLY OCTOBER 8, 2014: SPLINESPAGE 168 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. P1P1P1P1 P4P4P4P4 P2P2P2P2 P3P3P3P3

B-SPLINES CS 482 – FALL 2014 SECOND-ORDER CONTINUITY OCTOBER 8, 2014: SPLINESPAGE 169 P0P0P0P0 P3P3P3P3 P1P1P1P1 P2P2P2P2 P4P4P4P4 P5P5P5P5 P6P6P6P6 P7P7P7P7 P8P8P8P8 P9P9P9P9 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. P 10 P 11

BICUBIC SURFACES CS 482 – FALL 2014 APPROXIMATING SMOOTH SURFACES OCTOBER 8, 2014: SPLINESPAGE 170 LINE SEGMENTS MAY BE USED TO APPROXIMATE SURFACE BOUNDARIES, BUT TRIANGLES 1000 TRIANGLES69,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!

BICUBIC SURFACES CS 482 – FALL 2014 PATCHES OCTOBER 8, 2014: SPLINESPAGE 171 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.

SUBDIVISION SURFACES CS 482 – FALL 2014 USING BEZIER PATCHES OCTOBER 8, 2014: SPLINESPAGE 172 PATCHES CAN BE REFINED BY CREATING A LARGER GRID OF CONTROL POINTS FROM THE ORIGINAL GRID OF CONTROL POINTS. P1P1P1P1 P2P2P2P2 P3P3P3P3 P4P4P4P4 L1L1L1L1 L2L2L2L2 L3L3L3L3 R3R3R3R3 R2R2R2R2 L 4 =R 1 R4R4R4R4 ORIGINAL BÉZIER CURVE SUBDIVIDED BÉZIER CURVES L 1 = P 1 R 4 = P 4 L 3 = ½(L 2 +½(P 2 +P 3 )) R 2 = ½(R 3 +½(P 2 +P 3 )) L 2 = ½(P 1 +P 2 ) R 3 = ½(P 3 +P 4 ) L 4 = R 1 = ½(L 3 +R 2 )

SUBDIVISION SURFACES CS 482 – FALL 2014 APPLICATIONS OCTOBER 8, 2014: SPLINESPAGE 173 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