bézier curves: integrating math, arts and technology jomar f. rabajante uplb

23
Bézier Curves: Integrating Math, Arts and Technology Jomar F. Rabajante UPLB

Upload: cristopher-pierpoint

Post on 31-Mar-2015

219 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: Bézier Curves: Integrating Math, Arts and Technology Jomar F. Rabajante UPLB

Bézier Curves: Integrating Math, Arts and Technology

Jomar F. Rabajante

UPLB

Page 2: Bézier Curves: Integrating Math, Arts and Technology Jomar F. Rabajante UPLB

Parametric Curves

x10212

13

t0123

Page 3: Bézier Curves: Integrating Math, Arts and Technology Jomar F. Rabajante UPLB

Parametric Curves

y1382

t0123

Page 4: Bézier Curves: Integrating Math, Arts and Technology Jomar F. Rabajante UPLB

Parametric Curves

x y10 121 32 8

13 2

t0123

Page 5: Bézier Curves: Integrating Math, Arts and Technology Jomar F. Rabajante UPLB

10464510

)2)(1(10)1(151110)(23

ttt

tttttttx

16

25

2

17

3

7

)2)(1(3

7)1(

2

321)(

23

ttt

ttttttty

Parametric Curves

Page 6: Bézier Curves: Integrating Math, Arts and Technology Jomar F. Rabajante UPLB
Page 7: Bézier Curves: Integrating Math, Arts and Technology Jomar F. Rabajante UPLB

Widely used in vector graphics and computer-aided designs

Example of Parametric Curve: Bézier curve

Affine transformations on the curve can be done by just manipulating the “control points”

Parametric Curves

Page 8: Bézier Curves: Integrating Math, Arts and Technology Jomar F. Rabajante UPLB

Bézier Curves

Named after the French engineer Pierre Bézier of the Renault Automobile Company.

“Free form” curves Suppose we are given a set of control/Bézier

points:

i

ii y

xp

Page 9: Bézier Curves: Integrating Math, Arts and Technology Jomar F. Rabajante UPLB

We can generate a curve using the parametric form (Bernstein representation):

n

0i

)1(

1t0 ,)(

)()(

iiin ptt

i

n

ty

txtP

Familiar?

Bézier Curves

Page 10: Bézier Curves: Integrating Math, Arts and Technology Jomar F. Rabajante UPLB

For 3 points (Quadratic Bézier):

Notice that if t=0 we get (x0,y0). If t=1 we get (x2,y2).

As t takes on values between 0 & 1, a curve is traced but it may not pass through the central point.

10

))(1(2)1()(

))(1(2)1()(

22

102

22

102

t

ytyttytty

xtxttxttx

Bézier Curves

Page 11: Bézier Curves: Integrating Math, Arts and Technology Jomar F. Rabajante UPLB

Source: Wikipedia

Page 12: Bézier Curves: Integrating Math, Arts and Technology Jomar F. Rabajante UPLB

For 4 points (Cubic Bézier):

10

))(1(3

)()1(3)1()(

))(1(3

)()1(3)1()(

33

22

12

03

33

22

12

03

t

ytytt

yttytty

xtxtt

xttxttx

Bézier Curves

Page 13: Bézier Curves: Integrating Math, Arts and Technology Jomar F. Rabajante UPLB

You can use MS Excel, GraphCalc or any graphing software…

Page 14: Bézier Curves: Integrating Math, Arts and Technology Jomar F. Rabajante UPLB
Page 15: Bézier Curves: Integrating Math, Arts and Technology Jomar F. Rabajante UPLB
Page 16: Bézier Curves: Integrating Math, Arts and Technology Jomar F. Rabajante UPLB
Page 17: Bézier Curves: Integrating Math, Arts and Technology Jomar F. Rabajante UPLB
Page 18: Bézier Curves: Integrating Math, Arts and Technology Jomar F. Rabajante UPLB
Page 19: Bézier Curves: Integrating Math, Arts and Technology Jomar F. Rabajante UPLB

TO DO:

1.5 2 2.5 3 3.5 4 4.5 5 5.50

0.5

1

1.5

2

2.5

3

3.5

The following control points are used: .

Page 20: Bézier Curves: Integrating Math, Arts and Technology Jomar F. Rabajante UPLB

The Bézier curve lies entirely inside the convex hull containing all the control points.Convex hull of a set of points is the smallest convex set that contains the points. A set is convex iff the line segment between any two points in the set lies entirely in the set.

Examples of convex hull of four points:

Bézier Curves

Page 21: Bézier Curves: Integrating Math, Arts and Technology Jomar F. Rabajante UPLB

Some curves that seem simple, such as the circle, cannot be described exactly by a Bézier or piecewise Bézier curve; RATIONAL BEZIER curves can do this.

Bézier Curves

Page 22: Bézier Curves: Integrating Math, Arts and Technology Jomar F. Rabajante UPLB

de Casteljau’s Algorithm

Independently made by Paul de Faget de Casteljau to generate Bézier curves.

Uses barycenter coordinates.

Let’s use Geogebra

Page 23: Bézier Curves: Integrating Math, Arts and Technology Jomar F. Rabajante UPLB

Bézier Curves: Integrating Math, Arts and Technology

Jomar F. Rabajante

UPLB