1 Introduction Curve Modelling Jack van Wijk TU Eindhoven.

Slides:



Advertisements
Similar presentations
Curves Jim Van Verth Essential Math for Games Animation Problem: want to replay stored set of transformations  Generated by.
Advertisements

Lecture Notes #11 Curves and Surfaces II
Computer Graphics (Spring 2008) COMS 4160, Lecture 6: Curves 1
© University of Wisconsin, CS559 Spring 2004
Lecture 10 Curves and Surfaces I
Cubic Curves CSE167: Computer Graphics Instructor: Steve Rotenberg UCSD, Fall 2006.
© University of Wisconsin, CS559 Spring 2004
Jehee Lee Seoul National University
Lecture 29 of 42 Bezier Curves and Splines Wednesday, 02 April 2008
Splines II – Interpolating Curves
CS CS 175 – Week 9 B-Splines Blossoming, Bézier Splines.
CS CS 175 – Week 9 B-Splines Definition, Algorithms.
Rational Bezier Curves
Spline Interpretation ABC Introduction and outline Based mostly on Wikipedia.
09/04/02 Dinesh Manocha, COMP258 Bezier Curves Interpolating curve Polynomial or rational parametrization using Bernstein basis functions Use of control.
Advanced Computer Graphics (Spring 2005) COMS 4162, Lecture 12: Spline Curves (review) Ravi Ramamoorthi Most material.
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.
Cubic Bezier and B-Spline Curves
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
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.
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
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.
Introduction to virtual engineering Óbuda University John von Neumann Faculty of Informatics Institute of Intelligent Engineering Systems Lecture 3. Description.
Curves.
Review of Interpolation. A method of constructing a function that crosses through a discrete set of known data points.
Vector Computer Graphic. Vector entities Line Circle, Ellipse, arc,… Curves: Spline, Bezier’s curve, … … Areas Solids Models.
Cornell CS465 Fall 2004 Lecture 15© 2004 Steve Marschner 1 2D Spline Curves CS 465 Lecture 15.
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.
University of Texas at Austin CS384G - Computer Graphics Fall 2008 Don Fussell Parametric Curves.
Splines IV – B-spline Curves based on: Michael Gleicher: Curves, chapter 15 in Fundamentals of Computer Graphics, 3 rd ed. (Shirley & Marschner) Slides.
Computer Graphics Representing Curves and Surfaces.
Keyframing and Splines Jehee Lee Seoul National University.
04/18/02(c) 2002 University of Wisconsin Last Time Hermite Curves Bezier Curves.
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.
Rendering Curves and Surfaces Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico 1 Angel:
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.
CSCE 441: Keyframe Animation/Smooth Curves (Cont.) Jinxiang Chai.
(c) 2002 University of Wisconsin
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.
CS 450: Computer Graphics PARAMETRIC SPLINES AND SURFACES
Splines Sang Il Park Sejong University. Particle Motion A curve in 3-dimensional space World coordinates.
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.
Foundations of Computer Graphics (Spring 2012) CS 184, Lecture 12: Curves 1
College of Computer and Information Science, Northeastern UniversityFebruary 27, CS U540 Computer Graphics Prof. Harriet Fell Spring 2009 Lectures.
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.
Curves and Surfaces.
Chapter 10-2: Curves.
2M050: Computer Graphics Jack van Wijk HG6.71.
CSE 167 [Win 17], Lecture 9: Curves 1 Ravi Ramamoorthi
© University of Wisconsin, CS559 Fall 2004
© University of Wisconsin, CS559 Fall 2004
© University of Wisconsin, CS559 Spring 2004
Introduction to Parametric Curve and Surface Modeling
Spline representation. ❖ A spline is a flexible strip used to produce a smooth curve through a designated set of points. ❖ Mathematically describe such.
Presentation transcript:

1 Introduction Curve Modelling Jack van Wijk TU Eindhoven

2 Overview curve modelling Parametric curves Requirements Concepts Lagrangian interpolation Bézier curve B-spline Cubic splines

3 Parametric curves t p(t)p(t)p’(t)

4 Tangent line to curve t p(t)p(t)p’(t) s q(s)q(s)

5 Example t p(t)p(t) p’(t) s q(s)q(s)

6 Curve modelling Problem: How to define a smooth curve? Solution: –Specify a sequence of points p i, i = 1,…, N, (control-points); –Generate a smooth curve that interpolates or approximates these control-points.

7 Requirements Smooth –no discontinuities in direction and curvature; Local control –Change of a point should have only local effect; Intuitive and easy to use –no oscillations, variation diminishing Approximate or interpolate?

8 Parametric interpolation

9 Linear interpolation of two points p1p1 p2p2 t

10 Linear interpolation of N points p1p1 p2p2 t p3p3 p4p4 p5p5 t wiwi

11 Linear interpolation Not Smooth Local control Intuitive and easy to use Interpolate

12 Lagrangian interpolation - 1

13 Lagrangian interpolation - 2

14 Lagrangian interpolation - 3

15 Lagrangian interpolation - 4 Smooth –no discontinuities in direction and curvature; NO local control Wild oscillations, not variation diminishing! Interpolating

16 Bézier curve - 1 Puzzle: Define a smooth curve that interpolates the first and last point and approximates the others. p1p1 p2p2 p3p3 p4p4

17 Bézier curve - 2 Solution for N=3: p1p1 p2p2 p3p3 q2q2 q1q1 p(t)

18 Bézier curve - 3 Solution for N=4: p1p1 p2p2 p3p3 p(t) p4p4

19 Bézier curve - 4

20 Bézier curve - 5

21 Bézier curve - 6 General Bézier curve: Degree = #points-1 Smooth –no discontinuities in direction and curvature; NO local control Variation diminishing, convex hull property Interpolates first and last, further approximating

22 Convex hull property

23 Convex hull property example Curve outside convex hull Curve inside convex hull

24 B-splines Piecewise polynomial, locally non-zero Degree: user definable Continuity: degree-1 –first degree: continuous in position –second degree: continuous in tangent –third degree: continuous in curvature

25 Quadratic B-spline

26 Cubic B-spline

27 B-splines - 3 General B-spline: Degree: from 1 to N-1 Smooth (if degree > 1) Local control Variation diminishing, convex hull property Approximating

28 Cubic splines - 1 Most popular in Computer Graphics: powerful –inflection points, continuity simple –low degree polynomials local control Many versions: –Bézier, B-spline, Catmull-Rom,...

29 Cubic splines - 2

30 Cubic splines - 2

31 Cubic splines - 3

32 Tangent vector t p’(t) p(t)

33 Significant values p(0) : startpoint segment p’(0) : tangent through startpoint p(1) : endpoint segment p’(1) : tangent through endpoint t p(0) p(1) p’(0) p’(1)

34 Cubic Bézier curve p0p0 p1p1 p2p2 p3p3

35 Joining two Bezier segments p0p0 p2p2 p3p3 q0q0 q2q2 q3q3 Positional continuity: p 3 = q 0 Tangential continuity: p 3 - p 2 // q 1 - q 0 p1p1 q1q1

36 Cubic B-spline curve p0p0 p3p3 p1p1 p2p2

37 Conversion - 1

38 Conversion - 2

39 Puzzle 1: Hermite spline

40 Puzzle 2: Limit on interpolation Find out why a curve that –interpolates the control points, –stays within the convex hull, –and is smooth cannot exist, both graphically and mathematically.

41 Puzzle 3: Split Bezier curve Find a recipe to split a cubic Bezier curve segment into two segments: p0p0 p2p2 p3p3 q0q0 q1q1 q6q6 p1p1 q2q2 q3q3 q4q4 q5q5

42 Finally... Curves: interpolation of points –Interpolation is generally applicable, f.i. surfaces: interpolation of curves Demo program:

43 B-splines - 2