1 Computer Aided Geometric Design Ferienakademie 2004 Bernstein Polynomials, Bézier Curves, de Casteljau‘s Algorithm Shenqiang Wu.

Slides:



Advertisements
Similar presentations
Advanced Piloting Cruise Plot.
Advertisements

Copyright © 2003 Pearson Education, Inc. Slide 1 Computer Systems Organization & Architecture Chapters 8-12 John D. Carpinelli.
Chapter 1 The Study of Body Function Image PowerPoint
1 Copyright © 2013 Elsevier Inc. All rights reserved. Appendix 01.
Properties Use, share, or modify this drill on mathematic properties. There is too much material for a single class, so you’ll have to select for your.
UNITED NATIONS Shipment Details Report – January 2006.
David Burdett May 11, 2004 Package Binding for WS CDL.
Summary of Convergence Tests for Series and Solved Problems
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Properties of Real Numbers CommutativeAssociativeDistributive Identity + × Inverse + ×
FACTORING ax2 + bx + c Think “unfoil” Work down, Show all steps.
Year 6 mental test 10 second questions
1 Discreteness and the Welfare Cost of Labour Supply Tax Distortions Keshab Bhattarai University of Hull and John Whalley Universities of Warwick and Western.
SI23 Introduction to Computer Graphics
Visualization Techniques -
Numerische Simulation – Vom Modell zur Visualisierung, Ferienakademie 2005 Finite element discretisation finite difference and finite element discretisation.
Solve Multi-step Equations
EE, NCKU Tien-Hao Chang (Darby Chang)
ABC Technology Project
1 Undirected Breadth First Search F A BCG DE H 2 F A BCG DE H Queue: A get Undiscovered Fringe Finished Active 0 distance from A visit(A)
VOORBLAD.
Name Convolutional codes Tomashevich Victor. Name- 2 - Introduction Convolutional codes map information to code bits sequentially by convolving a sequence.
Equations of Lines Equations of Lines
Copyright © 2013, 2009, 2006 Pearson Education, Inc.
Factor P 16 8(8-5ab) 4(d² + 4) 3rs(2r – s) 15cd(1 + 2cd) 8(4a² + 3b²)
Basel-ICU-Journal Challenge18/20/ Basel-ICU-Journal Challenge8/20/2014.
© 2012 National Heart Foundation of Australia. Slide 2.
Lets play bingo!!. Calculate: MEAN Calculate: MEDIAN
Lecture 14 Curves and Surfaces II
Copyright © 2013, 2009, 2006 Pearson Education, Inc. 1 Section 5.4 Polynomials in Several Variables Copyright © 2013, 2009, 2006 Pearson Education, Inc.
Understanding Generalist Practice, 5e, Kirst-Ashman/Hull
Splines IV – B-spline Curves
Splines I – Curves and Properties
Chapter 5 Test Review Sections 5-1 through 5-4.
25 seconds left…...
Polynomial Functions of Higher Degree
Januar MDMDFSSMDMDFSSS
We will resume in: 25 Minutes.
©Brooks/Cole, 2001 Chapter 12 Derived Types-- Enumerated, Structure and Union.
PSSA Preparation.
1 Functions and Applications
1 Dr. Scott Schaefer Least Squares Curves, Rational Representations, Splines and Continuity.
Computer Graphics (Spring 2008) COMS 4160, Lecture 6: Curves 1
Cubic Curves CSE167: Computer Graphics Instructor: Steve Rotenberg UCSD, Fall 2006.
Lecture 29 of 42 Bezier Curves and Splines Wednesday, 02 April 2008
09/04/02 Dinesh Manocha, COMP258 Bezier Curves Interpolating curve Polynomial or rational parametrization using Bernstein basis functions Use of control.
CS CS 175 – Week 8 Bézier Curves Definition, Algorithms.
Modeling of curves Needs a ways of representing curves: Reproducible - the representation should give the same curve every time; Computationally Quick;
Cubic Bezier and B-Spline Curves
A story about Non Uniform Rational B-Splines E. Shcherbakov.
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.
1 Dr. Scott Schaefer Smooth Curves. 2/109 Smooth Curves Interpolation  Interpolation through Linear Algebra  Lagrange interpolation Bezier curves B-spline.
University of Texas at Austin CS384G - Computer Graphics Fall 2008 Don Fussell Parametric Curves.
Computer Graphics (Fall 2003) COMS 4160, Lecture 10: Curves 1 Ravi Ramamoorthi
Splines Sang Il Park Sejong University. Particle Motion A curve in 3-dimensional space World coordinates.
Foundations of Computer Graphics (Spring 2012) CS 184, Lecture 12: Curves 1
CS552: Computer Graphics Lecture 19: Bezier Curves.
Piecewise Polynomial Parametric Curves Sun-Jeong Kim.
Introduction to Parametric Curve and Surface Modeling.
Computer Graphics Lecture 38
CSE 167 [Win 17], Lecture 9: Curves 1 Ravi Ramamoorthi
© University of Wisconsin, CS559 Spring 2004
Introduction to Parametric Curve and Surface Modeling
Presentation transcript:

1 Computer Aided Geometric Design Ferienakademie 2004 Bernstein Polynomials, Bézier Curves, de Casteljau‘s Algorithm Shenqiang Wu

2 Computer Aided Geometric Design Ferienakademie 2004 Content  1. Motivation  2. Problems of Polynom Interpolation  3. Bézier Curves  3.1 Bernstein Polynomials  3.2 Definition of Bézier Curves  3.3 Evaluation  4. Summary

3 Computer Aided Geometric Design Ferienakademie 2004 Motivation (1/2) Target : better control over the curve’s shape Background: Computer-supported automobile and aircraft design Bézier (Renault) and de Casteljau (Citröen) both developed independent from each other around 1960/65 descriptions of curves with the following attributes:  Substitutes of pattern drawings by CAD  Flexible manipulation of curves with guaranteed and controllable shape of the resulting curve  Introduction of control points that not necessarily lie itself on the curve

4 Computer Aided Geometric Design Ferienakademie 2004 Motivation (2/2) Typical applications are:  Car design, aircraft design, and ship design  Simulation of movements  Animations, movie industry and computer graphics Modelling of objects with free-form-surfaces

5 Computer Aided Geometric Design Ferienakademie 2004 Problems of Polynom Interpolation (1/2)  Polynom interpolation is an easy and unique method for describing curves that also contain some „nice“ geometrical attributes.  Polynom interpolation is not the method of choice within CAD applications due to better curve descriptions (as we will see later). Reason: polynom interpolation may oscillate Reason: polynom interpolation may oscillate

6 Computer Aided Geometric Design Ferienakademie 2004 Problems of Polynom Interpolation (2/2) Problems:  The polynomial interpolant may oscillate even when normal data points and paramter values are used.  The polynomial interpolant is not shape preserving. This has nothing to do with numerical effects, it‘s due to the interpolation process.  Too high costs for interpolation process: huge amount of necessary operations for constructing and evaluating the interpolant.

7 Computer Aided Geometric Design Ferienakademie 2004 Bernstein Polynomials (1/2)  Preliminaries: Bernstein polynomials Def.: A Bernstein polynomial of grade n has the following description  Method of approximation: Bézier polynomials with binomial coefficients

8 Computer Aided Geometric Design Ferienakademie 2004 Bernstein Polynomials (2/2) Attributes of Bernstein polynomials:  i-times null in t=0, (n-i)-times null in t=1  Proof:   

9 Computer Aided Geometric Design Ferienakademie 2004 Basis functions of Bernstein Polynomials Bernstein-Polynome vom Grad 4

10 Computer Aided Geometric Design Ferienakademie 2004 B é zier Curves (1/2) Def.: The following curve is called B é zier curve of grade n with control points b 0, …,b n b1b1b1b1 b2b2b2b2 b3b3b3b3 b4b4b4b4 Bézier curve Control polygon The complete form of a Bézier polynomial of grade 3, for example, with control points b 0,…,b n looks as follows:

11 Computer Aided Geometric Design Ferienakademie 2004 Bézier Curves (2/2) Different Bézier Curves with its control polygons

12 Computer Aided Geometric Design Ferienakademie 2004 Attributes of B é zier Curves (1/9) Attributes of B é zier curves:  x(0)=b 0 and x(1)=b n, that means the Bézier curve lies on b 0 and b n.  Values x(t) are a convex combination of the control points  The Bézier curve entirely lies in its control polyeder or control polygon  x‘(0)=n(b 1 -b 0 ) and x‘(1)=n(b n -b n-1 ) (tangents in start and end point)

13 Computer Aided Geometric Design Ferienakademie 2004 Attributes of B é zier curves (2/9)  Bézier curves are invariant under projections  Bézier curves are symmetric within their control points  Are all Bézier points collinear the Bézier curve becomes a line  Bézier curves are shape preserving: non negative (monoton, convex…) data leads to a non negative (monoton, convex…) curve

14 Computer Aided Geometric Design Ferienakademie 2004 Attributes of Bézier Curves (3/9) Endpoint interpolation and attributes of tangents: A Bézier curve interpolates the first and the last point of its control polygon and has the first and last line element of its control polygon as tangent. control polygon line element Bézier curve b0b0 bnbn

15 Computer Aided Geometric Design Ferienakademie 2004 Attributes of Bézier Curves (4/9) Convex hull property: A Bézier curve lies within the convex hull of its control polygon.

16 Computer Aided Geometric Design Ferienakademie 2004 Attributes of Bézier Curves (5/9) Variation diminishing property: Given: Bézier curve, any kind of line or plane A Bézier curve doesn’t change the sides of any line or plane not more often as its control polygon Sample lines

17 Computer Aided Geometric Design Ferienakademie 2004 Attributes of Bézier Curves (6/9) Linear precision: Are the control points b 0,...,b n of a Bézier curve collinear the Bézier curve itself becomes a line. Control polygon Bézier curve b0b0 bnbn

18 Computer Aided Geometric Design Ferienakademie 2004 c1 c2 c2 c3 c3 c0 Attributes of Bézier Curves (7/9) Subdivision: Given is a Bézier curve with its control polygon (b 0,...,b n ) resp. [0,1]. Sometimes it’s necessary to cut a single Bézier curve into two parts, both together being identically to the originating curve. 1. The subdivision algorithm from de Casteljau leads to the control polygons (c 0,...,c n ) and (d 0,...,d n ) of the Bézier curves within the intervals [0,t] and [t,1], resp. b0b0 b1b1 b2b2 b3b3 Example: n=3 d2d2 d1d1 d0d0 d3d3

19 Computer Aided Geometric Design Ferienakademie 2004 Attributes of Bézier Curves (8/9) b0b0 b1b1 b2b2 b3b3 Subdivision: Given is a Bézier curve with its control polygon (b 0,...,b n ) 2. Successively subdivision with de Casteljau’s algorithm leads to a series of polygons fast converging to the curve.

20 Computer Aided Geometric Design Ferienakademie 2004 Attributes of Bézier Curves (9/9) b0b0 b1b1 b2b2 b3b3 Subdivision: Given is a Bézier curve with its control polygon (b 0,...,b n ) 3. Cutting off edges doesn’t lead to further changes of sides.  Variation diminishing property

21 Computer Aided Geometric Design Ferienakademie 2004 Increase of Grade of Bézier curves (1/2)   Problem: After a Bézier polygon has been modified several times, it can be seen that the curve of grade n is not flexible enough to represent the desired shape.   Idea: Add one edge without changing the current shape of the curve.   Solution: Increase the grade of the Bézier curve from n to n+1, thus, the new Bézier points B k can be determined from the old Bézier points b i as follows:

22 Computer Aided Geometric Design Ferienakademie 2004 Increase of Grade of Bézier Curves (2/2) Application:  Design of surfaces  Data exchange between different CAD and graphic systems Increase of grade: both polygons describe the same (cubic) curve

23 Computer Aided Geometric Design Ferienakademie 2004 Evaluation of B é zier Curves Method for determination of single curve points, i.e. determination of x(t) for some t:  de Casteljau‘s algorithm  Recursive calculation of Bernstein polynomials

24 Computer Aided Geometric Design Ferienakademie 2004 Recursive Calculation Recursive calculation of Bernstein polynomials Recursive calculation of Bernstein polynomials According to this definition Bézier curves are calculated with the help of Bernstein polynomials. Example of a cubic Bézier curve

25 Computer Aided Geometric Design Ferienakademie 2004 de Casteljau‘s Algorithm (1/2) Geometric construction according to de Casteljau‘s algorithm for n=3 and t=2/3 b0b0 b1b1 b2b2 b3b3 b01b01 b11b11 b21b21 b02b02 b12b12 b03b03 01t

26 Computer Aided Geometric Design Ferienakademie 2004 de Casteljau‘s Algorithm (2/2) de Casteljau ‘ s algorithm i=0, …,n:It can be described with the following scheme: k=1, …,n: i=k, …,n: This leads to

27 Computer Aided Geometric Design Ferienakademie 2004 Example: De Casteljau‘s Algorithm (1/2)  Given: Bézier curve of grade 4  With Bézier points  Wanted for for

28 Computer Aided Geometric Design Ferienakademie 2004 Example: de Casteljau‘s Algorithm (2/2) de Casteljau scheme for the x-component = x(t=0.6) de Casteljau scheme for the y-component = y(t=0.6) Resultat: X(t=0.6)=(x,y)=(3.42,4.174)

29 Computer Aided Geometric Design Ferienakademie 2004 Rating of B é zier Curves (1/2) Rating of B é zier Curves (1/2) Rating of B é zier curves according to controlability and locality: Local changes of control points have global effects, but their influence is only of local interest: Local changes of control points have global effects, but their influence is only of local interest: The change is only significant within the scope of the control point.

30 Computer Aided Geometric Design Ferienakademie 2004 Rating of B é zier Curves (2/2)  Complex shapes of the desired curves may result in a huge amount of control points that again leads to a high ploynom grade. Problems:  Double points are possible, i.e. the projection is not bijetive

31 Computer Aided Geometric Design Ferienakademie 2004 Further Freeform Curves B-Splines NURBS

32 Computer Aided Geometric Design Ferienakademie 2004 Freeform Surfaces Bézier surface