ICS 415 Computer Graphics Bézier Splines (Chapter 8)

Slides:



Advertisements
Similar presentations
SI23 Introduction to Computer Graphics
Advertisements

Lecture Notes #11 Curves and Surfaces II
BEZIER CURVES Part II. Assume we are given two endpoints labelled E1 and E2 and two control points labelled C1 and C2. create a smooth curve whose endpoints.
2002 by Jim X. Chen: Bezier Curve Bezier Curve.
March 1, 2009Dr. Muhammed Al-Mulhem1 ICS 415 Computer Graphics Hermite Splines Dr. Muhammed Al-Mulhem March 1, 2009 Dr. Muhammed Al-Mulhem March 1, 2009.
Lecture 10 Curves and Surfaces I
Cubic Curves CSE167: Computer Graphics Instructor: Steve Rotenberg UCSD, Fall 2006.
CS 445/645 Fall 2001 Hermite and Bézier Splines. Specifying Curves Control Points –A set of points that influence the curve’s shape Knots –Control points.
© University of Wisconsin, CS559 Spring 2004
Dr. S.M. Malaek Assistant: M. Younesi
1 Curves and Surfaces. 2 Representation of Curves & Surfaces Polygon Meshes Parametric Cubic Curves Parametric Bi-Cubic Surfaces Quadric Surfaces Specialized.
Slide 127 October 1999CS Computer Graphics (Top Changwatchai) Review of Spline Concepts Sections 10-6 to in Hearn & Baker Splines can be 2D.
Lecture 29 of 42 Bezier Curves and Splines Wednesday, 02 April 2008
AN INTRODUCTION BEZIER CURVES. AN INTRODUCTION BEZIER CURVES Bezier was an engineer with the Renault car company and set out in the early 1960's to develop.
Splines II – Interpolating Curves
Informationsteknologi Monday, December 10, 2007Computer Graphics - Class 161 Today’s class Curve fitting Evaluators Surfaces.
1 Lecture 13 Modeling Curved Lines and Surfaces. 2 Types of Surfaces Ruled Surfaces B-Splines and Bezier Curves Surfaces of Revolution.
1 Dr. Scott Schaefer The Bernstein Basis and Bezier Curves.
Cubic Bezier and B-Spline Curves
Curves Mortenson Chapter 2-5 and Angel Chapter 9
Bezier and Spline Curves and Surfaces Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico.
Computer Graphics 12: Spline Representations
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.
Designing Parametric Cubic Curves
Splines III – Bézier Curves
Computer Graphics Lecture 13 Curves and Surfaces I.
Curve Modeling Bézier Curves
Bresenham’s Algorithm. Line Drawing Reference: Edward Angel’s book: –6 th Ed. Sections 6.8 and 6.9 Assuming: –Clipped (to fall within the window) –2D.
11/19/02 (c) 2002, University of Wisconsin, CS 559 Last Time Many, many modeling techniques –Polygon meshes –Parametric instancing –Hierarchical modeling.
Interactive Graphics Lecture 9: Slide 1 Interactive Graphics Lecture 9: Introduction to Spline Curves.
(Spline, Bezier, B-Spline)
V. Space Curves Types of curves Explicit Implicit Parametric.
Introduction to Computer Graphics with WebGL
Spline Representations
Curves.
Review of Interpolation. A method of constructing a function that crosses through a discrete set of known data points.
Quadratic Surfaces. SPLINE REPRESENTATIONS a spline is a flexible strip used to produce a smooth curve through a designated set of points. We.
Chapter 4 Representations of Curves and Surfaces.
June D Object Representation Shmuel Wimer Bar Ilan Univ., School of Engineering.
University of Texas at Austin CS384G - Computer Graphics Fall 2008 Don Fussell Parametric Curves.
COLLEGE OF ENGINEERING UNIVERSITY OF PORTO COMPUTER GRAPHICS AND INTERFACES / GRAPHICS SYSTEMS JGB / AAS Representation of Curves and Surfaces Graphics.
CS 376 Introduction to Computer Graphics 04 / 25 / 2007 Instructor: Michael Eckmann.
Basic Theory (for curve 02). 1.3 Parametric Curves  The main aim of computer graphics is to display an arbitrary surface so that it looks real.  The.
Representation of Curves & Surfaces Prof. Lizhuang Ma Shanghai Jiao Tong University.
Computing & Information Sciences Kansas State University Lecture 31 of 42CIS 636/736: (Introduction to) Computer Graphics Lecture 32 of 42 Wednesday, 11.
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.
CS 450: Computer Graphics PARAMETRIC SPLINES AND SURFACES
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.
Computer Graphics Lecture 38
Surfaces and Curves.
Representation of Curves & Surfaces
(Spline, Bezier, B-Spline)
Computer Graphics Lecture 37
Parametric Curves.
CURVES CAD/CAM/CAE.
© University of Wisconsin, CS559 Spring 2004
Implicit Functions Some surfaces can be represented as the vanishing points of functions (defined over 3D space) Places where a function f(x,y,z)=0 Some.
Parametric Line equations
Three-Dimensional Object Representation
Introduction to Parametric Curve and Surface Modeling
Type to enter a caption. Computer Graphics Week 10 Lecture 1.
Type to enter a caption. Computer Graphics Week 10 Lecture 2.
Presentation transcript:

ICS 415 Computer Graphics Bézier Splines (Chapter 8) Dr. Muhammed Al-Mulhem March 1, 2009 March 1, 2009 Dr. Muhammed Al-Mulhem

Bézier Curves This spline approximation method was developed by the French engineer Pierre Bezier for use in the design of Renault car bodies. Bezier curve section can be fitted to any number of control points. The degree of the Bezier polynomial is determined by the number of control points to be approximated and their relative position. In general, Bezier curve can be specified using blending functions. March 1, 2009 Dr. Muhammed Al-Mulhem

Bézier Curves Equations Although, Bezier curve section can be fitted to any number of control points, some graphics packages limit the number of control points to four. March 1, 2009 Dr. Muhammed Al-Mulhem

Bézier Curves Equations Consider first the general case of n+1 control points, denoted as: March 1, 2009 Dr. Muhammed Al-Mulhem

Bézier Curves Equations The Bézier blending function BEZ k, n (u) are the Bernstein polynomials Where parameters C(n,k) are the binomial coefficients March 1, 2009 Dr. Muhammed Al-Mulhem

Bézier Curves Equations P(u) in slide #4 represent a set of three parametric equations for the individual curve coordinates. March 1, 2009 Dr. Muhammed Al-Mulhem

Bézier Curves Equations In most cases, a Bézier curve is a polynomial of degree one less that the designated number of control points. Three points generate a parabola, four points a cubic curve, and so on. Next slide demonstrate the appearance of some Bézier curves for various selections of control points in the x-y plane (z=0). March 1, 2009 Dr. Muhammed Al-Mulhem

Bézier Curves Equations March 1, 2009 Dr. Muhammed Al-Mulhem

Bézier Curves Equations With certain control points placements, however, we obtain degenerate Bézier polynomials. For example, A Bézier curve generated with three collinear control points is a straight-line segment. A set of control points that are all at the same coordinate position produce a Bézier curve that is a single point. March 1, 2009 Dr. Muhammed Al-Mulhem

Bézier Curves Equations A recursive calculations can be used to obtain successive binomial-coefficient values as: March 1, 2009 Dr. Muhammed Al-Mulhem

Bézier Curves Equations Also, the Bézier blending function satisfy the recursive relationship: March 1, 2009 Dr. Muhammed Al-Mulhem

Properties of Bézier Curves The curve connects the first and last control points. Thus, a basic characteristic of any Bézier curve is that: P(0) = p0 P(1) = pn March 1, 2009 Dr. Muhammed Al-Mulhem

Properties of Bézier Curves Values for the parametric first derivatives of a Bézier curve at the endpoints can be calculated from control point coordinates as: P’(0) = -np0 + n p1 P’(1) = -npn-1 + n pn From these expressions, we see that the slope at the beginning of the curve is a long the line joining the first two control points, and the slope at the end of the curve is a long the line joining the last two control points. March 1, 2009 Dr. Muhammed Al-Mulhem

Properties of Bézier Curves The parametric second derivatives of a Bézier curve at the endpoints are calculated as: P’’(0) = n (n – 1) [ (p2 - p1) - (p1 - p0) ] P’’(1) = n (n – 1) [ (pn-2 - pn-1) - (pn-1 - pn) ] March 1, 2009 Dr. Muhammed Al-Mulhem

Properties of Bézier Curves Another property of any Bézier curve is that it lies within the convex hull (convex polygon boundary) of the control points. This follows from the fact that the Bézier bending functions are all positive and their sum is always 1. March 1, 2009 Dr. Muhammed Al-Mulhem

Design Techniques using Bézier Curves A closed Bézier curve is generated when we set the last control point position to the coordinate position of the first control point. March 1, 2009 Dr. Muhammed Al-Mulhem

Design Techniques using Bézier Curves Also, specifying multiple control points at a single coordinate position gives more weight to that position. The resulting curve is pulled nearer to this position. March 1, 2009 Dr. Muhammed Al-Mulhem

Design Techniques using Bézier Curves We can fit Bézier curve to any number of control points, but this requires the calculation of polynomial functions of higher degree. When complicated curves are to be generated, they can be formed by piecing together several Bézier curves of lower degrees. Generating smaller Bézier curves also gives us better local control over the shape of the curve. March 1, 2009 Dr. Muhammed Al-Mulhem

Design Techniques using Bézier Curves Since Bézier curve connect the first and last control points, it is easy to match curve sections (zero-order continuity). Also, Bézier curves have the important property that the tangent to the curve at an endpoint is along the line joining that endpoint to the adjacent control point. March 1, 2009 Dr. Muhammed Al-Mulhem

Design Techniques using Bézier Curves To obtain first-order continuity between curve sections, we can pick control points p0’ and p1’ for the next curve section to be along the same straight line as control points pn-1 and pn of the preceding section. p3 March 1, 2009 Dr. Muhammed Al-Mulhem

Cubic Bézier Curves Cubic Bézier curves are generated with four control points. The four blending function for cubic Bézier curves, obtained by substituting n =3 into equations in slide # 5. The results are: March 1, 2009 Dr. Muhammed Al-Mulhem

Cubic Bézier Curves The plots of the four cubic Bézier blending functions are as follows: March 1, 2009 Dr. Muhammed Al-Mulhem

Cubic Bézier Curves The form of the blending functions determines how the control points influence the shape of the curve for values of parameter u over the range from 0 to 1. At u=0, the only nonzero blending function is BEZ0,3, which has value 1. At u=1, the only nonzero blending function is BEZ3,3, which has value 1. March 1, 2009 Dr. Muhammed Al-Mulhem

Cubic Bézier Curves A cubic Bézier curve always begins at control point p0 and ends at p3. The other functions, BEZ1,3, and BEZ2,3, influence the shape of the curve at intermediate values of parameter u, so the resulting curve tends toward the points p1 and p2. Blending function BEZ1,3, is maximum at u=1/3, and BEZ2,3, is maximum at u=2/3. March 1, 2009 Dr. Muhammed Al-Mulhem

Bézier in Matrix Form A matrix form for the cubic Bézier curve function is obtained by expanding the polynomial expressions for the blending functions. Where the Bézier matrix is March 1, 2009 Dr. Muhammed Al-Mulhem