Docsity

Spline Representations - Computer Graphics - Lecture Slides, Slides of Computer Graphics

Partial preview of the text

Download Spline Representations - Computer Graphics - Lecture Slides and more Slides Computer Graphics in PDF only on Docsity!

Spline Representations

Docsity.com

Contents

  • Today we are going to look at Bézier spline curves - Introduction to splines - Bézier origins - Bézier curves - Bézier cubic splines

Docsity.com

Physical Splines

  • Physical splines are used in car/boat design

Pierre BézierDocsity.com

Big Idea

  • User specifies control points
  • Defines a smooth curve

Control Points

Control Points

Curve

Docsity.com

Convex Hulls

  • The boundary formed by the set of control points for a spline is known as a convex hull
  • Think of an elastic band stretched around the control points

Images taken from Hearn & Baker, “Computer Graphics with OpenGL” (2004) Docsity.com

Control Graphs

  • A polyline connecting the control points in order is known as a control graph
  • Usually displayed to help designers keep track of their splines

Images taken from Hearn & Baker, “Computer Graphics with OpenGL” (2004) Docsity.com

Bézier Spline Curves (cont…)

• Consider the case of n+1 control points

denoted as pk =(xk , yk , zk ) where k varies

from 0 to n

  • The coordinate positions are blended to

produce the position vector P(u) which

describes the path of the Bézier polynomial

function between p0 and pn

=

= ≤ ≤

n

k

P u pk BEZk n u u 0

( ) , ( ), 0 1

Docsity.com

Bézier Spline Curves (cont…)

  • The Bézier blending functions BEZ (^) k,n(u) are the Bernstein polynomials
  • where parameters C(n,k) are the binomial coefficients

k n k

BEZ k n u C n k u u

,

k n k

n

C n k

Docsity.com

Bézier Spline Curves (cont…)

Images taken from Hearn & Baker, “Computer Graphics with OpenGL” (2004) Docsity.com

Important Properties Of Bézier Curves

  • The first and last control points are the first and last point on the curve - P(0) = p (^0) - P(1) = p (^) n
  • The curve lies within the convex hull as the Bézier blending functions are all positive and sum to 1 ( ) 1 0

∑ , =

n k

BEZk n u

Docsity.com

Cubic Bézier Blending Functions

Docsity.com

Bézier Spline Curve Exercise

(1, 4)

(3, 7)

(7, 1)

(11, 5)

y

Docsity.com^ x