Computer Aided Geometric Design

Slides:



Advertisements
Similar presentations
Chapter 2 Functions and Graphs.
Advertisements

Computer Graphics (Spring 2008) COMS 4160, Lecture 6: Curves 1
MA Day 24- February 8, 2013 Section 11.3: Clairaut’s Theorem Section 11.4: Differentiability of f(x,y,z) Section 11.5: The Chain Rule.
Cubic Curves CSE167: Computer Graphics Instructor: Steve Rotenberg UCSD, Fall 2006.
09/25/02 Dinesh Manocha, COMP258 Triangular Bezier Patches Natural generalization to Bezier curves Triangles are a simplex: Any polygon can be decomposed.
Cubic Curves CSE169: Computer Animation Instructor: Steve Rotenberg UCSD, Winter 2005.
CS CS 175 – Week 9 B-Splines Blossoming, Bézier Splines.
CS CS 175 – Week 9 B-Splines Definition, Algorithms.
Computational Geometry The art of finding algorithms for solving geometrical problems Literature: –M. De Berg et al: Computational Geometry, Springer,
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.
1 Dr. Scott Schaefer Tensor-Product Surfaces. 2/64 Smooth Surfaces Lagrange Surfaces  Interpolating sets of curves Bezier Surfaces B-spline Surfaces.
Cubic Bezier and B-Spline Curves
CS Subdivision I: The Univariate Setting Peter Schröder.
5.5 The Substitution Rule. The Substitution Rule If u=g(x) is differentiable function whose range is an interval I, and f is continuous on I, then The.
Chapter 2 Functions and Graphs
Logarithmic Functions  In this section, another type of function will be studied called the logarithmic function. There is a close connection between.
Splines III – Bézier Curves
Chapter 2 Functions and Graphs
Curve Modeling Bézier Curves
Engineering Research Center for Computer Integrated Surgical Systems and Technology Fall 2000; Updated: 12 September 2015 Copyright © R. H. Taylor.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
Section 5.1 Polynomials Addition And Subtraction.
Gram-Schmidt Orthogonalization
1 Dr. Scott Schaefer Smooth Curves. 2/109 Smooth Curves Interpolation  Interpolation through Linear Algebra  Lagrange interpolation Bezier curves B-spline.
1 Dr. Scott Schaefer Blossoming and B-splines. 2/105 Blossoms/Polar Forms A blossom b(t 1,t 2,…,t n ) of a polynomial p(t) is a multivariate function.
Copyright © Cengage Learning. All rights reserved. Polynomials 4.
Copyright © 2014, 2010 Pearson Education, Inc. Chapter 2 Polynomials and Rational Functions Copyright © 2014, 2010 Pearson Education, Inc.
Korea University Jung Lee, Computer Graphics Laboratory 3D Game Engine Design David H. Eberly 8.3 Special Surfaces 2001/11/13.
Section 2-8 First Applications of Groebner Bases by Pablo Spivakovsky-Gonzalez We started this chapter with 4 problems: 1.Ideal Description Problem: Does.
University of Texas at Austin CS384G - Computer Graphics Fall 2008 Don Fussell Parametric Curves.
1 CS 430/536 Computer Graphics I Curve Drawing Algorithms Week 4, Lecture 8 David Breen, William Regli and Maxim Peysakhov Geometric and Intelligent Computing.
Copyright © 2014, 2010, and 2006 Pearson Education, Inc. Chapter 4 Polynomials.
CS 376 Introduction to Computer Graphics 04 / 25 / 2007 Instructor: Michael Eckmann.
Computer Graphics (Fall 2003) COMS 4160, Lecture 10: Curves 1 Ravi Ramamoorthi
1 Graphics CSCI 343, Fall 2015 Lecture 34 Curves and Surfaces III.
Copyright © 2014, 2010, and 2006 Pearson Education, Inc. Chapter 4 Polynomials.
Foundations of Computer Graphics (Spring 2012) CS 184, Lecture 12: Curves 1
Blossoms CS 419 Advanced Topics in Computer Graphics John C. Hart
1 Copyright © 2015, 2011, and 2008 Pearson Education, Inc. Chapter 1 Functions and Graphs Section 6 Logarithmic Functions.
Advanced Algorithms Analysis and Design By Dr. Nazir Ahmad Zafar Dr Nazir A. Zafar Advanced Algorithms Analysis and Design.
Graphics Programming 2003, Lee Byung-Gook, Dongseo Univ., Graphics Programming Lee Byung-Gook Dongseo Univ.
REVIEW Linear Combinations Given vectors and given scalars
Complex Numbers 12 Learning Outcomes
Chapter 2 Functions and Graphs
Lap Chi Lau we will only use slides 4 to 19
Computation of the solutions of nonlinear polynomial systems
Linear Equations in Linear Algebra
Computer Graphics Lecture 38
CSE 167 [Win 17], Lecture 10: Curves 2 Ravi Ramamoorthi
Bezier Triangles and Multi-Sided Patches
Topics in Algorithms Lap Chi Lau.
Chapter 2 Functions and Graphs
CSE 167 [Win 17], Lecture 9: Curves 1 Ravi Ramamoorthi
Parametric Curves.
Chapter 2 Functions and Graphs
Ch 5.2: Series Solutions Near an Ordinary Point, Part I
Linear Equations in Linear Algebra
The Bernstein Basis and Bezier Curves
Copyright © Cengage Learning. All rights reserved.
f (x) = anxn + an-1xn-1 +…+ a2x2 + a1x + a0
Matrices and Matrix Operations
Lecture 21: B Spline Curve
Determinant of amatrix:
equivalent expression
Derivatives of Inverse Functions
Matrix Algebra THE INVERSE OF A MATRIX © 2012 Pearson Education, Inc.
Numerical Analysis Lecture 24.
Parallel Line Proof.
Computer Aided Geometric Design Mika Hirsch
Presentation transcript:

Computer Aided Geometric Design Class Exercise #13 Advanced Topics - Blossoming 1

The Blossom of a Bezier Curve Recall the de Casteljau algorithm, 𝑏 𝑖 ∈ ℝ 3 : 𝑏 0 1−𝑡 𝑏 0 1 1−𝑡 𝑡 𝑏 1 𝑏 0 2 1−𝑡 𝑡 𝑏 1 1 𝑏 0 3 =𝛾 𝑡 𝑏 2 ⋮ 𝑡 𝑏 1 2 ⋮ 𝑏 2 1 𝑏 3 ⋮ 2

The Blossom of a Bezier Curve Generalize by updating 𝑡 at each column: 𝑏 0 1− 𝑡 1 𝑏 0 1 𝑡 1 𝑡 1 𝑏 1 1− 𝑡 2 𝑏 0 2 𝑡 1 , 𝑡 2 𝑡 2 𝑏 1 1 𝑡 1 1− 𝑡 3 𝑏 0 3 𝑡 1 , 𝑡 2 , 𝑡 3 𝑏 2 ⋮ 𝑡 3 ⋮ 𝑏 1 2 𝑡 1 , 𝑡 2 𝑏 2 1 𝑡 1 𝑏 3 ⋮ 3

The Blossom of a Bezier Curve We obtained a function: 𝑏 ≔ 𝑏 0 3 : 0,1 3 → ℝ 3 4

Q.1 Given the function 𝑏 𝑡 1 , 𝑡 2 , 𝑡 3 how can we find: The corresponding Bezier curve? The original control points? The intermediate points of the de-Casteljau algorithm? 5

Solution For the Bezier curve choose 𝑡 1 = 𝑡 2 = 𝑡 3 =𝑡 and get: 𝛾 𝑡 =𝑏 𝑡,𝑡,𝑡 . The curve is the blossom evaluated at the diagonal of the domain! 6

Solution For the control points: First we know that a Bezier curve interpolates the first and last point, therefore: 𝑏 0 =𝛾 0 =𝑏 0,0,0 , 𝑏 3 =𝛾 1 =𝑏 1,1,1 . 7

Solution What is 𝑏 0,0,1 ? 𝑏 0 𝑏 0 𝑏 1 𝑏 0 𝑏 1 𝑏 2 𝑏 1 𝑏 1 𝑏 2 𝑏 3 1 1 𝑏 1 1 1 𝑏 0 𝑏 1 1 𝑏 2 𝑏 1 1 𝑏 1 1 𝑏 2 𝑏 3 8

Solution Similarly: 𝑏 2 =𝑏 0,1,1 . What about intermediate points of the de-Casteljau algorithm? 9

Solution 𝑏 0 =𝑏 0,0,0 𝑏 0 1 =𝑏 0,0,𝑡 𝑏 1 =𝑏 0,0,1 𝑏 0 2 =𝑏 0,𝑡,𝑡 𝑏 1 1 =𝑏 0,𝑡,1 𝑏 0 3 =𝑏 𝑡,𝑡,𝑡 𝑏 2 =𝑏 0,1,1 𝑏 1 2 =𝑏 𝑡,𝑡,1 𝑏 2 1 =𝑏 𝑡,1,1 𝑏 3 =𝑏 1,1,1 10

Solution The general fact is formulated as follows: 𝑏 𝑖 =𝑏 0 𝑛−𝑖 , 1 𝑖 𝑏 𝑖 =𝑏 0 𝑛−𝑖 , 1 𝑖 and the recursion rule is: 𝑏 0 𝑛−𝑟−𝑖 , 𝑡 𝑟 , 1 𝑖 = 1−𝑡 𝑏 0 𝑛−𝑟−𝑖+1 , 𝑡 𝑟−1 , 1 𝑖 +𝑡𝑏 0 𝑛−𝑟−𝑖 , 𝑡 𝑟−1 , 1 𝑖+1 11

Q.2 Prove that the blossom of a Bezier curve is: Symmetric Multi-Affine. 12

Solution We show the symmetry for two variables. The general case follows from the same arguments. Consider: 𝑏 1 𝑎 𝑠 = 1−𝑠 𝑏 0 +𝑠 𝑏 1 𝑎 𝑡 = 1−𝑡 𝑏 0 +𝑡 𝑏 1 𝑏 𝑡 𝑎 𝑠 𝑏 𝑠 𝑎 𝑡 𝑏 2 𝑏 𝑠 = 1−𝑠 𝑏 1 +𝑠 𝑏 2 𝑏 0 𝑏 𝑡 = 1−𝑡 𝑏 1 +𝑡 𝑏 2 13

Solution The geometry behind the proof is the following: the middle point can be interpolated first with 𝑡 and then with 𝑠, or vice versa. 𝑏 1 𝑏 𝑡 𝑎 𝑠 𝑏 𝑠 𝑎 𝑡 𝑏 2 𝑏 0 14

Solution Now: 𝑏 𝑡,𝑠 = 1−𝑠 𝑎 𝑡 +𝑠 𝑏 𝑡 𝑏 𝑠,𝑡 = 1−𝑡 𝑎 𝑠 +𝑡 𝑏 𝑠 𝑏 𝑡,𝑠 = 1−𝑠 𝑎 𝑡 +𝑠 𝑏 𝑡 𝑏 𝑠,𝑡 = 1−𝑡 𝑎 𝑠 +𝑡 𝑏 𝑠 From here compute and verify both expressions are the same (describing the same middle point!). 𝑎 𝑠 = 1−𝑠 𝑏 0 +𝑠 𝑏 1 𝑎 𝑡 = 1−𝑡 𝑏 0 +𝑡 𝑏 1 𝑏 𝑠 = 1−𝑠 𝑏 1 +𝑠 𝑏 2 𝑏 𝑡 = 1−𝑡 𝑏 1 +𝑡 𝑏 2 15

Solution An Affine combination is a linear combination with coefficients that sum to 1. (how is that different from a convex combination?) 16

Solution A function of one variable is called affine if: 𝑓 𝛼𝑥+ 1−𝛼 𝑦 =𝛼𝑓 𝑥 + 1−𝛼 𝑓 𝑦 . A multivariate function is called multi affine if it is affine with respect to every variable. 17

Solution From the symmetry – it suffices to show that the blossom is affine with respect to the first variable. The proof is by induction using the deCasteljau recursion rule! 18

Blossoms as Polar Forms Definition: Given a polynomial 𝑓 𝑡 , the polar form of 𝑓 𝑡 is the polynomial in 𝑛 variables 𝐹 𝑢 1 ,…, 𝑢 𝑛 with the properties: Symmetric Multi-Affine The diagonal: 𝐹 𝑡,…,𝑡 =𝑓 𝑡 19

Blossoms as Polar Forms Theorem: Every polynomial 𝑓 𝑡 indeed has a polar form 𝐹 and is unique. 20

Blossoms as Polar Forms Idea behind the proof of existence: 𝑓 𝑡 = 𝑖=0 𝑛 𝑐 𝑖 𝑡 𝑖 Then: 𝐹 𝑡 1 ,…, 𝑡 𝑛 = 𝑖=0 𝑛 𝑐 𝑖 𝑛 𝑖 −1 𝑆⊂ 1,…,𝑛 , 𝑆 =𝑖 𝑗∈𝑆 𝑡 𝑗 21

Blossoms as Polar Forms In practice, replace monomials in the following way: 𝑡↦ 𝑡 1 +…+ 𝑡 𝑛 𝑛 𝑡 2 ↦ 𝑡 1 𝑡 2 + 𝑡 2 𝑡 3 + 𝑡 1 𝑡 3 …+ 𝑡 𝑛−1 𝑡 𝑛 𝑛 2 22

Q.3 How can the blossom of a Bezier curve be used for subdivision at 𝑡? 23

Solution 𝑏 0 =𝑏 0,0,0 𝑏 0 1 =𝑏 0,0,𝑡 𝑏 1 =𝑏 0,0,1 𝑏 0 2 =𝑏 0,𝑡,𝑡 𝑏 1 1 =𝑏 0,𝑡,1 𝑏 0 3 =𝑏 𝑡,𝑡,𝑡 𝑏 2 =𝑏 0,1,1 𝑏 1 2 =𝑏 𝑡,𝑡,1 𝑏 2 1 =𝑏 𝑡,1,1 𝑏 3 =𝑏 1,1,1 24

Solution 𝑏 0 =𝑏 0,0,0 𝑏 0 1 =𝑏 0,0,𝑡 𝑏 1 =𝑏 0,0,1 𝑏 0 2 =𝑏 0,𝑡,𝑡 𝑏 1 1 =𝑏 0,𝑡,1 𝑏 0 3 =𝑏 𝑡,𝑡,𝑡 𝑏 2 =𝑏 0,1,1 𝑏 1 2 =𝑏 𝑡,𝑡,1 𝑏 2 1 =𝑏 𝑡,1,1 𝑏 3 =𝑏 1,1,1 25