QUADRATIC BÉZIER CURVES

Similar documents
CSE 167: Lecture 13: Bézier Curves. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2011

Figure 2.1: Center of mass of four points.

Modeling Curves and Surfaces

the points are called control points approximating curve

Computer Graphics CS 543 Lecture 12 (Part 1) Curves. Prof Emmanuel Agu. Computer Science Dept. Worcester Polytechnic Institute (WPI)

CHAPTER 1 Splines and B-splines an Introduction

We can display an object on a monitor screen in three different computer-model forms: Wireframe model Surface Model Solid model

BEZIER CURVES AND SURFACES

Essential Mathematics for Computer Graphics fast

Precalculus REVERSE CORRELATION. Content Expectations for. Precalculus. Michigan CONTENT EXPECTATIONS FOR PRECALCULUS CHAPTER/LESSON TITLES

Computer Graphics. Geometric Modeling. Page 1. Copyright Gotsman, Elber, Barequet, Karni, Sheffer Computer Science - Technion. An Example.

(Refer Slide Time: 1:42)

Geometric Modelling & Curves

2013 MBA Jump Start Program

Planar Curve Intersection

3.3. Solving Polynomial Equations. Introduction. Prerequisites. Learning Outcomes

CURVE FITTING LEAST SQUARES APPROXIMATION

Content. Chapter 4 Functions Basic concepts on real functions 62. Credits 11

Review of Fundamental Mathematics

Curves and Surfaces. Goals. How do we draw surfaces? How do we specify a surface? How do we approximate a surface?

Algebra 1 Course Title

1.6 A LIBRARY OF PARENT FUNCTIONS. Copyright Cengage Learning. All rights reserved.

Chapter 9. Systems of Linear Equations

Analyzing Functions Intervals of Increase & Decrease Lesson 76

y intercept Gradient Facts Lines that have the same gradient are PARALLEL

Max-Min Representation of Piecewise Linear Functions

Algebra Academic Content Standards Grade Eight and Grade Nine Ohio. Grade Eight. Number, Number Sense and Operations Standard

Pre-Algebra Academic Content Standards Grade Eight Ohio. Number, Number Sense and Operations Standard. Number and Number Systems

7.6 Approximation Errors and Simpson's Rule

Piecewise Cubic Splines

Algebra and Geometry Review (61 topics, no due date)

MA 323 Geometric Modelling Course Notes: Day 02 Model Construction Problem

Sample Problems. Practice Problems

Trigonometric Functions and Equations

Zeros of Polynomial Functions

Microeconomics Sept. 16, 2010 NOTES ON CALCULUS AND UTILITY FUNCTIONS

PYTHAGOREAN TRIPLES KEITH CONRAD

A Geometric Characterization of Parametric Cubic Curves

The degree of a polynomial function is equal to the highest exponent found on the independent variables.

A characterization of trace zero symmetric nonnegative 5x5 matrices

Figure 1.1 Vector A and Vector F

Math 4310 Handout - Quotient Vector Spaces

Numerical integration of a function known only through data points

Prentice Hall: Middle School Math, Course Correlated to: New York Mathematics Learning Standards (Intermediate)

Second Order Linear Nonhomogeneous Differential Equations; Method of Undetermined Coefficients. y + p(t) y + q(t) y = g(t), g(t) 0.

Estimated Pre Calculus Pacing Timeline

Math 1050 Khan Academy Extra Credit Algebra Assignment

Largest Fixed-Aspect, Axis-Aligned Rectangle

4.3 Lagrange Approximation

Increasing for all. Convex for all. ( ) Increasing for all (remember that the log function is only defined for ). ( ) Concave for all.

Scalar Valued Functions of Several Variables; the Gradient Vector

Prentice Hall Algebra Correlated to: Colorado P-12 Academic Standards for High School Mathematics, Adopted 12/2009

MATH BOOK OF PROBLEMS SERIES. New from Pearson Custom Publishing!

2008 AP Calculus AB Multiple Choice Exam

Thnkwell s Homeschool Precalculus Course Lesson Plan: 36 weeks

DERIVATIVES AS MATRICES; CHAIN RULE

Math 120 Final Exam Practice Problems, Form: A

BookTOC.txt. 1. Functions, Graphs, and Models. Algebra Toolbox. Sets. The Real Numbers. Inequalities and Intervals on the Real Number Line

Linearly Independent Sets and Linearly Dependent Sets

Gymnázium, Brno, Slovanské nám. 7, SCHEME OF WORK Mathematics SCHEME OF WORK. cz

How To Understand And Solve Algebraic Equations

This unit will lay the groundwork for later units where the students will extend this knowledge to quadratic and exponential functions.

PCHS ALGEBRA PLACEMENT TEST

What does the number m in y = mx + b measure? To find out, suppose (x 1, y 1 ) and (x 2, y 2 ) are two points on the graph of y = mx + b.

Prentice Hall Mathematics: Algebra Correlated to: Utah Core Curriculum for Math, Intermediate Algebra (Secondary)

Definition 8.1 Two inequalities are equivalent if they have the same solution set. Add or Subtract the same value on both sides of the inequality.

POLYNOMIAL FUNCTIONS

Examples of Functions

Chapter 4 One Dimensional Kinematics

NEW YORK STATE TEACHER CERTIFICATION EXAMINATIONS

Math 1. Month Essential Questions Concepts/Skills/Standards Content Assessment Areas of Interaction

Polynomial Degree and Finite Differences

Georgia Department of Education Kathy Cox, State Superintendent of Schools 7/19/2005 All Rights Reserved 1

x 2 + y 2 = 1 y 1 = x 2 + 2x y = x 2 + 2x + 1

1 Error in Euler s Method

MATH 0110 Developmental Math Skills Review, 1 Credit, 3 hours lab

Solving Quadratic Equations

Section 1.1. Introduction to R n

Systems of Linear Equations in Three Variables

Equations, Inequalities & Partial Fractions

Copyrighted Material. Chapter 1 DEGREE OF A CURVE

HIGH SCHOOL: GEOMETRY (Page 1 of 4)

o Graph an expression as a function of the chosen independent variable to determine the existence of a minimum or maximum

Answer Key Building Polynomial Functions

Critically Periodic Cubic Polynomials

Mathematics Online Instructional Materials Correlation to the 2009 Algebra I Standards of Learning and Curriculum Framework

Alum Rock Elementary Union School District Algebra I Study Guide for Benchmark III

88 CHAPTER 2. VECTOR FUNCTIONS. . First, we need to compute T (s). a By definition, r (s) T (s) = 1 a sin s a. sin s a, cos s a

Math 1280/1300, Pre-Calculus

Investigating Area Under a Curve

G. GRAPHING FUNCTIONS

OpenStax-CNX module: m Quadratic Sequences 1; 2; 4; 7; 11;... (1)

B2.53-R3: COMPUTER GRAPHICS. NOTE: 1. There are TWO PARTS in this Module/Paper. PART ONE contains FOUR questions and PART TWO contains FIVE questions.

Method To Solve Linear, Polynomial, or Absolute Value Inequalities:

Corollary. (f є C n+1 [a,b]). Proof: This follows directly from the preceding theorem using the inequality

Numerical Solution of Differential

11.1. Objectives. Component Form of a Vector. Component Form of a Vector. Component Form of a Vector. Vectors and the Geometry of Space

Visualizing Differential Equations Slope Fields. by Lin McMullin

Core Maths C2. Revision Notes

Degree Reduction of Interval SB Curves

Transcription:

On-Line Geometric Modeling Notes QUADRATIC BÉZIER CURVES Kenneth I. Joy Visualization and Graphics Research Group Department of Computer Science University of California, Davis Overview The Bézier curve representation is one that is utilized most frequently in computer graphics and geometric modeling. The curve is defined geometrically, which means that the parameters have geometric meaning they are just points in three-dimensional space. It was developed by two competing European engineers in the late 1960s to attempt to draw automotive components. In these notes, we develop the quadratic Bézier curve. This curve can be developed through a divideand-conquer approach whose basic operation is the generation of midpoints on the curve. However, this time we develop the curve by calculating points other than midpoints resulting in a useful parameterization for the curve. Development of the Quadratic Bézier Curve Given three control points P 0, P 1 and P 2 we develop a divide procedure that is based upon a parameter t, which is a number between 0 and 1 (the illustrations utilize the value t =.75). This proceeds as follows: First let 1 be the point on the segment P 0 P 1 defined by 1 = (1 t)p 0 + tp 1 (= P 0 + t(p 1 P 0 ))

then let 2 be the point on the segment P 1 P 2 defined by 2 = (1 t)p 1 + tp 2 and finally let P (2) 2 be the point on the segment 1 P(1) 2 defined by P (2) 2 = (1 t) 1 + t 2 Point on the curve 2

Define P(t) = P (2) 2. This is a similar procedure to the divide-and-conquer method in that geometric means are used to define points on the curve. Each time a new point is calculated, the control points are subdivided into two sets, each of which may be use to generate new subcurves. The method is identical to the divide-and-conquer method in the case t = 1 2. Developing the Equation of the Curve There is a different way of looking at this procedure because there is a parameter involved. Each one of the points 1, P(1) 2, and P(2) 2 is really a function of the parameter t and P (2) 2 can be equated with P(t) since it is a point on the curve that corresponds to the parameter value t. In this way, P(t) becomes a functional representation of the Bézier curve. Writing down the algebra, we see that where P(t) = P (2) 2 (t) = (1 t) 1 (t) + tp(1) 2 (t) 1 (t) = (1 t)p 0 + tp 1, and 2 (t) = (1 t)p 1 + tp 2 (Note that we have now denoted 1 and 2 as functions of t.) Substituting these two equations back into the original, we have P(t) = (1 t) 1 (t) + tp(1) 2 (t) = (1 t) [(1 t)p 0 + tp 1 ] + t [(1 t)p 1 + tp 2 ] = (1 t) 2 P 0 + (1 t)tp 1 + t(1 t)p 1 + t 2 P 2 = (1 t) 2 P 0 + 2t(1 t)p 1 + t 2 P 2 This is quadratic polynomial (as it is a linear combination of quadratic polynomials), and therefore it is a parabolic segment. Thus, the quadratic Bézier curve is simply a parabolic curve. 3

Properties of the Quadratic Curve The quadratic Bézier curve has the following properties, which can be easily verified. 1. P(0) = P 0 and P(1) = P 2, so the curve passes through the control points P 0 and P 2. 2. The curve P(t) is continuous and has continuous derivatives of all orders. (This is automatic for a polynomial.) 3. We can differentiate P(t) with respect to t and obtain d dt P(t) = 2(1 t)p 0 + [ 2t + 2(1 t)] P 1 + 2tP 2 = 2 [(1 t) (P 1 P 0 ) + t (P 2 P 1 )] Thus d dt P(0) = 2(P 1 P 0 ), is the tangent vector at t = 0 and d dt P(1) = 2(P 2 P 1 ) is the tangent vector at t = 1. This implies that the slope of the curve at t = 0 is the same as that of the vector 2(P 1 P 0 ) and the slope of the curve at t = 1 is the same as that of the vector 2(P 2 P 1 ). 4. The functions (1 t) 2, 2t(1 t), and t 2 that are used to blend the control points P 0, P 1 and P 2 together are the degree-2 Bernstein Polynomials They are all non-negative functions and sum to one. Clearly (1 t) 2 + 2t(1 t) + t 2 = 1 2t + t 2 + 2t 2t 2 + t 2 = 1 5. The curve is contained within the triangle P 0 P 1 P 2. Since the blending functions are non-negative and add to one, P (t) is an affine combination of the points P 0, P 1, and P 2. Thus P(t) must lie in the convex hull of the control points for all 0 t 1. The convex hull of a triangle is the triangle itself. 6. If the points P 0, P 1 and P 2 are colinear, then the curve is a straight line. If the points are colinear, then the convex hull is a straight line, and the curve must lie within the convex hull. { 7. The process of calculating one P(t) subdivides the control points into two sets { and P (2) 2 (t), P(1) 2 (t), P 2 process above. P 0, 1 (t), P(2) 2 (t) }, }, each of which can be used to define another curve, as in our subdivision 4

8. All the points, generated from the divide-and-conquer method, lie on this curve. Clearly P( 1 2 ) is the first point calculated by the divide and conquer method. Lets show that P( 1 4 ) is exactly the point obtained by performing the divide-and-conquer method, on the control points Q 0 = P 0, Q 2 = 1 ( 1 2 ) and Q 2 = P (2) 2 ( 1 2 ) which were generated in the first step of the divide-and-conquer method. If we call this point Q, then by the divide-and-conquer method Q = 1 2 Q(1) 1 + 1 2 Q(1) 2 = 1 [ 1 2 2 Q 0 + 1 ] 2 Q 1 + 1 2 = 1 4 Q 0 + 1 2 Q 1 + 1 4 Q 2 [ 1 2 Q 1 + 1 ] 2 Q 2 and by substituting for the Qs, and similifying Q = 1 4 P 0 + 1 2 P(1) 1 (t) + 1 4 P(2) 2 (t) = 1 4 P 0 + 1 2 P(1) 1 (t) + 1 4 = 1 4 P 0 + 3 8 P(1) 1 (t) + 1 8 P(1) 2 (t) = 1 4 P 0 + 5 [ 1 8 2 P 0 + + 1 ] 2 P 1 + 1 8 = 9 16 P 0 + 3 8 P 1 + 1 16 P 2 [ 1 2 P(1) 1 (t) + 1 ] 2 P(1) 2 (t) [ 1 2 P 1 + + 1 ] 2 P 2 If we calculate P(t) with t = 1 4, we have P( 1 4 ) = (1 t)2 P 0 + 2t(1 t)p 1 + t 2 P 2 = 9 16 P 0 + 3 8 P 1 + 1 16 P 2 So P( 1 4 is exactly the point constructed in from the divide-and-conquer algorithm. Similar calculations exist for all other points generated in the divide and conquer method each point generated by the method will correspond to one with a corresponding parameter of k 2 n for some k and n. Summarizing the Development of the Curve 5

We now have two methods by which we can generate points on the curve. The first of which is geometrically based points are found on the curve by selecting successive points on line segments. The other is an analytic formula, which expresses the curve in functional notation. The Geometrical Construction Method Given points P 0, P 1, and P 2, we can construct a curve P(t) by the following construction P(t) = P (2) 2 (t) where P (j) i (t) = (1 t)p (j 1) i 1 (t) + tp(j 1) i (t) if j > 0 P i if j = 0 for t [0, 1]. The Analytical Formula Given points P 0, P 1, and P 2, we can construct a curve P(t) by the following P(t) = (1 t) 2 P 0 + 2t(1 t)p 1 + t 2 P 2 for t [0, 1]. Summary The quadratic curve serves as a good example for discussing the development of the Bézier curve, but really only generates parabolas. This eliminates the curve for many applications where smooth curves with inflection points are necessary. The problem can be addressed by performing exactly the same steps as above, but utilizing the procedure on four control points resulting in the cubic Bézier curve. All contents copyright (c) 1996, 1997, 1998, 1999, 2000 Computer Science Department, University of California, Davis All rights reserved. 6