MA 323 Geometric Modelling Course Notes: Day 14 Properties of Bezier Curves

Similar documents
MA 323 Geometric Modelling Course Notes: Day 21 Three Dimensional Bezier Curves, Projections and Rational Bezier Curves

08 - Designing Approximating Curves

Lecture IV Bézier Curves

Central issues in modelling

Lecture 25: Bezier Subdivision. And he took unto him all these, and divided them in the midst, and laid each piece one against another: Genesis 15:10

CS130 : Computer Graphics Curves (cont.) Tamar Shinar Computer Science & Engineering UC Riverside

Design considerations

Computer Graphics Splines and Curves

Curve and Surface Basics

Properties of Blending Functions

Interactive Graphics. Lecture 9: Introduction to Spline Curves. Interactive Graphics Lecture 9: Slide 1

Rendering Curves and Surfaces. Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico

CS3621 Midterm Solution (Fall 2005) 150 points

Roadmap for tonight. What are Bezier curves (mathematically)? Programming Bezier curves (very high level view).

Curves D.A. Forsyth, with slides from John Hart

CSE 167: Introduction to Computer Graphics Lecture #11: Bezier Curves. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2016

Know it. Control points. B Spline surfaces. Implicit surfaces

Surfaces for CAGD. FSP Tutorial. FSP-Seminar, Graz, November

MA 323 Geometric Modelling Course Notes: Day 10 Higher Order Polynomial Curves

MA 323 Geometric Modelling Course Notes: Day 31 Blended and Ruled Surfaces Coons Patches

Curves. Computer Graphics CSE 167 Lecture 11

Parametric Curves. University of Texas at Austin CS384G - Computer Graphics Fall 2010 Don Fussell

3D Modeling Parametric Curves & Surfaces. Shandong University Spring 2013

OUTLINE. Quadratic Bezier Curves Cubic Bezier Curves

Representing Curves Part II. Foley & Van Dam, Chapter 11

Rational Bezier Curves

Parametric Curves. University of Texas at Austin CS384G - Computer Graphics

Need for Parametric Equations

An introduction to interpolation and splines

Splines. Connecting the Dots

Keyword: Quadratic Bézier Curve, Bisection Algorithm, Biarc, Biarc Method, Hausdorff Distances, Tolerance Band.

CSE 167: Introduction to Computer Graphics Lecture #13: Curves. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2017

Homework #2. Hidden Surfaces, Projections, Shading and Texture, Ray Tracing, and Parametric Curves

ECE 600, Dr. Farag, Summer 09

On an approach for cubic Bézier interpolation

(Spline, Bezier, B-Spline)

Computational Geometry

Parametric curves. Reading. Curves before computers. Mathematical curve representation. CSE 457 Winter Required:

CSC 305 More Modelling

Worksheet A GRAPHS OF FUNCTIONS

3.7. Vertex and tangent

f( x ), or a solution to the equation f( x) 0. You are already familiar with ways of solving

Curves and Surfaces. Shireen Elhabian and Aly A. Farag University of Louisville

Objectives. Materials

1. Use the Trapezium Rule with five ordinates to find an approximate value for the integral

Remark. Jacobs University Visualization and Computer Graphics Lab : ESM4A - Numerical Methods 331

Parametric curves. Brian Curless CSE 457 Spring 2016

The Essentials of CAGD

CSE 167: Introduction to Computer Graphics Lecture 12: Bézier Curves. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2013

Computer Graphics Spline and Surfaces

Curves and Surfaces 1

3D Modeling Parametric Curves & Surfaces

Bezier Curves. An Introduction. Detlef Reimers

LECTURE #6. Geometric Modelling for Engineering Applications. Geometric modeling for engineering applications

Accelerated Pre-Calculus Unit 1 Task 1: Our Only Focus: Circles & Parabolas Review

For each question, indicate whether the statement is true or false by circling T or F, respectively.

COMPUTER AIDED GEOMETRIC DESIGN. Thomas W. Sederberg

2D Spline Curves. CS 4620 Lecture 18

(Refer Slide Time: 00:02:24 min)

( ) 2. Integration. 1. Calculate (a) x2 (x 5) dx (b) y = x 2 6x. 2. Calculate the shaded area in the diagram opposite.

Pythagorean - Hodograph Curves: Algebra and Geometry Inseparable

TO DUY ANH SHIP CALCULATION

Computer Graphics Curves and Surfaces. Matthias Teschner

Curves and Surfaces for Computer-Aided Geometric Design

MEI Desmos Tasks for AS Pure

Until now we have worked with flat entities such as lines and flat polygons. Fit well with graphics hardware Mathematically simple

Introduction to Computer Graphics

Information Coding / Computer Graphics, ISY, LiTH. Splines

Curve Representation ME761A Instructor in Charge Prof. J. Ramkumar Department of Mechanical Engineering, IIT Kanpur

Isoparametric Curve of Quadratic F-Bézier Curve

f xx (x, y) = 6 + 6x f xy (x, y) = 0 f yy (x, y) = y In general, the quantity that we re interested in is

Figure 5.1: Spline and ducks.

Lectures 19: The Gauss-Bonnet Theorem I. Table of contents

Problem Max. Points Total 80

A MATRIX FORMULATION OF THE CUBIC BÉZIER CURVE

and the crooked shall be made straight, and the rough ways shall be made smooth; Luke 3:5

Mathematically, the path or the trajectory of a particle moving in space in described by a function of time.

Advanced Graphics. Beziers, B-splines, and NURBS. Alex Benton, University of Cambridge Supported in part by Google UK, Ltd

Bézier Splines. B-Splines. B-Splines. CS 475 / CS 675 Computer Graphics. Lecture 14 : Modelling Curves 3 B-Splines. n i t i 1 t n i. J n,i.

CS559 Computer Graphics Fall 2015

CS348a: Computer Graphics Handout #24 Geometric Modeling Original Handout #20 Stanford University Tuesday, 27 October 1992

BMO Round 1 Problem 6 Solutions

Fall CSCI 420: Computer Graphics. 4.2 Splines. Hao Li.

Unit 3, Lesson 3.1 Creating and Graphing Equations Using Standard Form

Intro to Modeling Modeling in 3D

Spline Methods Draft. Tom Lyche and Knut Mørken

CS 475 / CS Computer Graphics. Modelling Curves 3 - B-Splines

Curves and Surfaces Computer Graphics I Lecture 9

The Free-form Surface Modelling System

Bezier Curves, B-Splines, NURBS

MA 323 Geometric Modelling Course Notes: Day 28 Data Fitting to Surfaces

In what follows, we will focus on Voronoi diagrams in Euclidean space. Later, we will generalize to other distance spaces.

EECS 487, Fall 2005 Exam 2

Spline Methods Draft. Tom Lyche and Knut Mørken

Spline Methods Draft. Tom Lyche and Knut Mørken. Department of Informatics Centre of Mathematics for Applications University of Oslo

Splines. Parameterization of a Curve. Curve Representations. Roller coaster. What Do We Need From Curves in Computer Graphics? Modeling Complex Shapes

In this course we will need a set of techniques to represent curves and surfaces in 2-d and 3-d. Some reasons for this include

Chapter 11. Parametric Equations And Polar Coordinates

An Introduction to B-Spline Curves

Computer Graphics CS 543 Lecture 13a Curves, Tesselation/Geometry Shaders & Level of Detail

Transcription:

MA 323 Geometric Modelling Course Notes: Day 14 Properties of Bezier Curves David L. Finn In this section, we discuss the geometric properties of Bezier curves. These properties are either implied directly from de Casteljau s algorithm or properties of the Bernstein polynomials. We have indirectly mentioned a few of these properties in class, with a few of the properties obvious from the algorithm and Bezier form. However, other properties are far from obvious and require some deep thought. We list the more obvious properties and provide the direct reasons for these properties, with little discussion. The more deep properties 14.1 Endpoint Interpolation Figure 1: Bezier curve with endpoint interpolation A Bezier curve always passes through the first and last control points. This is a property of de Casteljau s algorithm. When t = 0, from the definition of de Casteljau s algorithm p j+1 i = p j i so pn 0 = p n 1 0 = = p 1 0 = p 0 0 = p 0. In addition, when t = 1, we have p j+1 i = p j i+1 so p n 0 = p n 1 1 = = p 1 n 1 = p 0 n = p n. This is also a direct consequence of the basis function approach by observing the following facts about the Bernstein polynomials 0 βi n(t) 1 for 0 tleq1, 0 < βi n(t) < 1 for 0 < t < 1, n i=0 βn i (t) = 1 and βn 0 (0) = 1 = βn(1). n These facts imply that c(0) = p 0 and c(1) = p n. It is possible to arrange a Bezier curve to pass through other control points, but generically this will not happen.

14-2 14.2 Prescribed Tangent Lines at the Endpoints: A Bezier curve has prescribed tangent lines at the control points p 0 and p n. The tangent lines being given by the line segments p 0 p 1 and p n 1 p n. To see this, we note that c(t) = p n 0 (t) = (1 t) p n 1 0 (t) + t p1 n 1 (t) then differentiating we have c (t) = p n 1 1 (t) p n 1 0 (t) + (1 t) (p n 1 0 ) (t) + t (p n 1 1 ) (t). Evaluate when t = 0, we have c (0) = p n 1 1 (0) p n 1 0 (0) + (p n 1 0 ) (0). From the endpoint interpolation, p n 1 0 (0) = p 0 and p n 1 1 (0) = p 1. Induction then leads to (p n k 0 ) (t) = p n k 1 1 (t) p n k 1 0 (t) + (p n k 1 0 ) (t) and (p n k 0 ) (0) = p 1 p 0 + (p n k 1 0 ) (0). Eventually, we are reduced to the linear case (p 1 0) (t) = p 0 1 p 0 0. Then back-substituting yields (p n 0 ) (0) = n (p 1 p 0 ). A similar argument at the other endpoint yields p n 0 (1) = n (p n p n 1 ). Alternatively, one use the basis function approach and note from the derivative properties of a Bezier curve that n 1 c (t) = n β n 1 i (t) i p. i=0 The endpoint interpolation property above implies that c (0) = n 0 p = n(p 1 p 0 ) and c (1) = n n 1 p = n(p n p n 1 ). Figure 2: Prescribed Tangent Lines at the Endpoints 14.3 Symmetry: Reversing the order of the control points produces the same curve. This is a direct consequence of the change of variables s = 1 t that converts the straight line (1 t)a+tb which parameterizes the line from A when t = 0 to B when t = 1 to the straight line sa + (1 s)b which parameterizes the line from B when s = 0 to A when s = 1. This shows that with the Bezier curve c 1 (t) from the order p 0, p 1, p 2,, p n and the Bezier curve c 2 (t) from the order p n, p n 1, p n 2,, p 1, p 0 are related by c 1 (t) = c 2 (1 t). Alternatively, this is a property of the basis functions and their symmetry βi n(t) = βn n i (1 t). 14.4 Convex hull property: A Bezier curve lies in the convex hull of the control points. To explain this property we first need to define the convex hull of a set of points. First a convex set is a set that contains the

14-3 line segment joining every pair of points in the set (see diagram below). The convex hull is the smallest convex set containing a set of points, in terms of set theory the convex hull is the intersection of all convex sets that contain the point set. Figure 3: Convex sets and nonconvex sets In the figure above, the darker shaded sets are not convex and the lighter shaded sets are convex. Figure 4: Convex Hull Property That a Bezier curve lies within in the convex hull of its control points follows directly from de Casteljau s algorithm. Every point constructed in de Casteljau s algorithm lies with the convex hull of the control points, as each point lies on a line segment constructed through the control points, see diagrams below illustrating de Casteljau s algorithm an the convex hull. 14.5 Pseudolocal Control: This property concerns the effect on the entire curve of changing one control point. The entire curve is affected by moving one control point. However, the major change in the curve is concentrated around one section of the curve. This is a property best seen from the basis function approach. The function β n i (t) = n! i!(n i)! ti (1 t) n i

14-4 has derivative equal to zero when t = 0, t = 1 and t = i/n and maximum value at t = i/n. But more importantly away from t = i/n the function is close to zero. The effect of the control point is concentrated near t = i/n, but any change affects the whole curve. Figure 5: Pseudo-local control property 14.6 Variation Diminishing Property: A planar Bezier curve intersects a line no more times than its control polyline. [Spatial bezier curves intersect a plane no more times than the control polyline, intersects the plane.] This is a very useful property when considering the possible intersection of a Bezier curve with an object. In particular, the intersection of two Bezier curves. Two Bezier curves can intersect only if their convex hulls intersect, and the intersection of a convex hull with a curve may be reduced to the intersection of a line with a curve. Variation diminishing tells us even more. It tell us how many times the curve may intersect the line. Figure 6: Variation Dimensioning Property

14-5 Proving the variation diminishing property is not exactly easy, it involves the idea of degree elevation and repeated degree elevation. Degree elevation is a simple concept. Suppose you have defined a parabola (quadratic Bezier curve) through control points P 0, P 1 and P 2 to solve one problem. However, you to solve another problem, you need a cubic Bezier curve that generates the parabola. How do you generate the control points for this cubic Bezier curve? The solution is given by degree elevation. We create a new set of control points from the control points p 0, p 1, p 2. [The exact manner of accomplishing this is an explored in the interactive exercises and the written exercises] In fact, the procedure involves a linear interpolation to the control polyline. It is not hard to show that linear interpolants satisfy the variation diminishing property (see the figure below). When we repeatedly applying degree elevation to a control polyline, it is true that the new control polylines approach the curve which they generate. Therefore, the original curve must satisfy the variation diminishing property. 14.7 Exercises 1. CONVEX HULL: Construct the convex hull of the sets below. (a) The set of points in the diagram below Figure 7: Construct Convex Hull of These Points (b) The curves below the circle, curves and the line segments in the diagram below Figure 8: Construct Convex Hull

14-6 2. VARIATION DIMINISHING PROPERTY: Given control points in the diagram below. (a) Determine the number of times the Bezier curve could intersect the lines L 1, L 2, and L 3 at most. (b) Sketch the Bezier curve through with the given control points and determine the number of times the curve intersects the lines. Figure 9: Variation Diminishing Property. 3. DEGREE ELEVATION 1: Compute the location of the control points for the cubic by looking at the barycentric coefficients of P 0, P 1, P 2 for the parabola and the barycentric coefficents for the cubic Q 0 = P 0, Q 1, Q 2, Q 3 = P 2 in written as standard polynomials, that is express both in the form a 0 + a 1 t + a 2 t 2 + 0 t 3. In order for the curves to be equal the curves as polynomials must be equal, and you have equations to solve for the points. Test this solution in the applet for constructing Bezier Curves. 4. DEGREE ELEVATION 2: Determine the location of the control points for a quartic curve (4th degree) to be equal to a cubic curve. First use the Bezier Curve applet to approximate the location from succesfully completing the first two exercises. Then, determine the exact location of the points as in the above exercises. 5. DEGREE REDUCTION: It is possible sometimes to reverse the process of degree elevation to define a lower degree curve that is equal to the given Bezier curve. This process is called degree reduction and can be directly applied only to degenerate polynomial curves. If we modify the fundamental question to given a Bezier curve of degree n find a Bezier curve of degree n 1 that is close to the given curve, then we have a problem that is solvable. Use the Bezier curve applet to investigate a solution to this problem. Generate a cubic Bezier curve, then try to approximate the cubic curve with a quadratic Bezier curve. Then construct a quartic Bezier curve and try to approximate it with a cubic Bezier curve. How did you place the control points? 6. THOUGHT PROBLEM: Given a line segment inside the convex hull of the control points of a Bezier curve. Does the Bezier curve necessary intersect the curve. How could you determine whether it does? and the number of times for which the curve intersects the line?