blending surfaces

43
Blending Surfaces

Upload: luke

Post on 19-Jan-2016

54 views

Category:

Documents


1 download

DESCRIPTION

Blending Surfaces. Introduction. Blending n. 1. The act of mingling. 1913 Webster 2. (Paint.) The method of laying on different tints so that they may mingle together while wet, and shade into each other insensibly. --Weale. 1913 Webster. Introduction. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Blending Surfaces

Blending Surfaces

Page 2: Blending Surfaces

IntroductionBlending n. 1. The act of mingling. 1913 Webster

2. (Paint.) The method of laying on different tints so that they may mingle together while wet, and shade into

each other insensibly. --Weale. 1913 Webster

Page 3: Blending Surfaces

Introduction

The process of mixing several base objects to form a new object.

The process of providing smooth transition between intersecting surfaces or smooth connection between disjoint surfaces.

Page 4: Blending Surfaces
Page 5: Blending Surfaces

A General Blending model

We have seen a Belnding method before !

(where ?)

Lets presents a simple scheme for point blending:

1 2 1 2

1 2

, ,..., , ,...,, ,...,

1 2( , ,..., )

n n

n

i i i i i ii i i

n

F u b u P

u u u u

Page 6: Blending Surfaces

A General Blending Model

Bezier and Bspline representation is exactly of this form.

Q. Why use Points as the Base objects?

A. There is no reason

Page 7: Blending Surfaces

A General Blending Model Let Q be an arbitrary parametrically defined

objects. The general parametric equation is we receive is:

Q – base objectsb – blending functions

1 2 1 2

1 2

, ,..., , ,...,, ,...,

1 2( , ,..., )

n n

n

i i i i i ii i i

n

G u b u Q

u u u u

Page 8: Blending Surfaces

Blending example Blending a set of curves for example: We use a continues function b which

satisfy the following conditions:

Then blending and , two parametric curves on the same domain is:

0 0 0 b s 1 b 1 1b

1c t 2c t

1 2, 1S s t b s C t b s C t

Page 9: Blending Surfaces

Blending example We can immediately see that: S is a surface. S(0,t) is a curve. (which one ?) S(1,t) is a curve. (which one ?)

Q. Can we blend in this way surfaces ? A. Yes

1 2, 1S s t b s C t b s C t 0 0 0 b s 1 b 1 1b

Page 10: Blending Surfaces

Blending Function

We will use the Bernstein functions to create a smooth blending function.

Let be the i-th Bernstein basis function of degree n.

lets define :

,i nB s

1 0,3 1,3

2 1

1 0

0 1

0 1

1

s

b s B s B s s

s

b s b s

Page 11: Blending Surfaces

Blending functions

Page 12: Blending Surfaces

General Equation

Let S1 and S2 be two smooth surfaces then we can define:

1 1 2 2, , ,

[0,1]

S s t b s S s t b s S s t

s

Page 13: Blending Surfaces

Rail curves

S is a blending surface smoothly connecting S1 and S2 along the rail curves S1(0,t) , S2(1,t)

Page 14: Blending Surfaces

The intersection problem

Finding the intersection curve between two surfaces is a Hard problem.

Algebraic solutions – complex , good for low dimensionality.

Numerically solutions – not accurate, loose parameterization.

Page 15: Blending Surfaces

The intersection problem

Solution: Numerically find points on the

intersection curve. Construct a curve C that

interpolate the points. Locally change the surfaces so

they pass through C.

Page 16: Blending Surfaces

Curve/Surface Blending Model Let c(t) be a smooth curve on [c,d] S1(s,t) a smooth surface on [a,b]X[c,d] We define:

1 0,2

2 1

1 0

0 1

0 1

1

s

b s B s s

s

b s b s

Page 17: Blending Surfaces

Blending function

Page 18: Blending Surfaces

Curve / Surface Blending Model

The new parametric surface we get is:

1 2 1

1

, ,

, [0,1] [ , ]

0,

, , S 1

S s t b s C t b s S s t

s t X c d

S t C t

S s t S s t

1 0,2

2 1

1 0

0 1

0 1

1

s

b s B s s

s

b s b s

Page 19: Blending Surfaces

Curve / Surface Blending

We can easily see that the interpolated curve pass through the new Surface.

To finish the algorithm we will use the model presented earlier on our problem.

Page 20: Blending Surfaces

Curve / Surface Blending

C(t) is a curve defined on [a,b] S1(s,t) is a surface defined on

[a,b]x[c,d] C1=S1(h(v)) a curve on S1 h(v) is a function from [0,1] to

[a,b]X[c,d]

For simplicity:

3

0 ,30

0j 0 0

v [0,1]

P , [ , ] [ , ]

j ji

j j

h v P B v

X Y a b X c d

Page 21: Blending Surfaces

Curve / Surface Blending

We need to create a blending erea. This is done by sweeping h(v) to

the right.

And the blending area is:

1 0 ( ,0)j jP P e

1 3

1 30 0

,

, [0,1] [0,1]

ij i ji j

f u v P B u B v

u v X

Page 22: Blending Surfaces

Curve / Surface Blending Thus the blending surface is:

1 2 1, ,

, [0,1] [0,1]

1

S u v b u C g v b u S f u v

u v X

g v v a vb

Page 23: Blending Surfaces
Page 24: Blending Surfaces

3 surfaces – 2 curves

Can we use a similar approach for more variables ?

Yes we can …

Page 25: Blending Surfaces

Surface/Surface – Corner Blending

Page 26: Blending Surfaces

Surface/Surface – Corner Blending

Blending is done in the parameter space.

Intersection curve can be approximated !

Page 27: Blending Surfaces

Blending functions

21

1 ,,

0 ,i

ii

i i i

s t Hb s t

s t O

O R H M M G

Page 28: Blending Surfaces

Constructing b1 definitions Bernstein of degree 5

f- mapping (rotation / translation)

3

0

, ,5i

b s t B i

1 2

1

:

:

:

i i

i i i

i i i

f P O

f PP e

f PR e

Page 29: Blending Surfaces

Bernstein triangular

C(s,t) = Bernstein triangular Edges are bizier curves. Fits our parameters (c1)

Page 30: Blending Surfaces

Blending function

1

1

1 11

3 3

1 ,

0 ,

, ,,

1 , ,

, ,

s t H

s t O

b f s t s t Mb s t

b f s t s t M

c s t s t G

Page 31: Blending Surfaces

Blend by pointwise interpolation

Given two surfaces P(u,v) , Q(s,t) Let A(w) , B(w) two respective contact

curves: A(w)=P(u(w),v(w)) B(w)=Q(s(w),t(w))

We pick two vectors in the tangent plane.

Page 32: Blending Surfaces

pointwise interpolation

A general form of the vectors:

2 2

, ,

, ,

a u v

b s t

T l P u w v w k P u w v w

T l Q s w t w k Q s w v w

Page 33: Blending Surfaces

pointwise interpolation

Using global functions M0 and M1 :

0 1 0 1

0 0 0 1

0 0 0 1

1 0 1 1

1 0 1 1

0 0 0 1

0 0 0 1

0 0 0 1

0 0 0 1

1 M 0

' 0 M ' 0

0 M 1

' 0 M ' 0

0 N 0

' 1 N ' 0

0 N 0

' 0 N ' 1

a bf h M h A M h B N h T N h T

M h h

M h h

M h h

M h h

N h h

N h h

N h h

N h h

Page 34: Blending Surfaces

Blend by pointwise interpolation

0 1 0 1, a bF h w M h A w M h B w N h T w N h T w

And the new surface is:

Page 35: Blending Surfaces

Choices of functions

There are many choices for M and N.

Tangent vectors T are more application driven.

Example:aT N t

Page 36: Blending Surfaces

Geometric correspondence

Hard problem There is No good solution.

Page 37: Blending Surfaces

Fanout surface technique

Using intrinsic properties of the curves !

( ), ,

,, ,

, ,

u vn

u v

f n

P u v P u vP u v

P u v P u v

P P u v p P u v

Page 38: Blending Surfaces

Fanout surface technique If P is a point on A. (the contact

curve)

And the curve becomes:

, ,P u v P u a v a A a

f nP A a p A a

Page 39: Blending Surfaces

The fanout surface Using a and p as parameters gives us

the fanout surface:

And in a similar way:

, ,f n nP A a p A a P u a v a p P u a v a

, ,f n nQ B b q B b Q s b t b q Q s b t b

Page 40: Blending Surfaces

Funout surfaces intersection The intersection of the fanout surfaces

gives us the needed correspondence. 3 equations , 4 unknowns, one

parameter

Q. Where are the 3 equations?A. Next page…

, ,f fP a p Q b q

Page 41: Blending Surfaces

Correspondence solution

, ,

, [ , , , , , ]

, [ , , , , , ]

1) , ,

2) , ,

3) , ,

f f

f f f fx y z

f f f fx y z

f fx x

f fy y

f fz z

P a p Q b q

P a p P a p P a p P a p

Q b q Q b q Q b q Q b q

P a p Q b q

P a p Q b q

P a p Q b q

Page 42: Blending Surfaces

Correspondence solution

a=a(w) , p=p(w) , b=b(w) , q=q(w) We have a parametric solution

from degree 1 = curve !

Page 43: Blending Surfaces

THE END