39
1 Dr. Scott Schaefer Coons Patches and Gregory Patches

1 Dr. Scott Schaefer Coons Patches and Gregory Patches

Embed Size (px)

Citation preview

Page 1: 1 Dr. Scott Schaefer Coons Patches and Gregory Patches

1

Dr. Scott Schaefer

Coons Patches and Gregory Patches

Page 2: 1 Dr. Scott Schaefer Coons Patches and Gregory Patches

2/39

Patches With Arbitrary Boundaries

Given any 4 curves, f(s,0), f(s,1), f(0,t), f(1,t) that meet continuously at the corners, construct a smooth surface interpolating these curves

Page 3: 1 Dr. Scott Schaefer Coons Patches and Gregory Patches

3/39

Patches With Arbitrary Boundaries

Given any 4 curves, f(s,0), f(s,1), f(0,t), f(1,t) that meet continuously at the corners, construct a smooth surface interpolating these curves

)0,(sf

)1,(sf

),0( tf

),1( tf

s

t

Page 4: 1 Dr. Scott Schaefer Coons Patches and Gregory Patches

4/39

Coons Patches

Build a ruled surface between pairs of curves

)0,(sf

)1,(sf

),0( tf

),1( tf

s

t

Page 5: 1 Dr. Scott Schaefer Coons Patches and Gregory Patches

5/39

Coons Patches

Build a ruled surface between pairs of curves

)0,(sf

)1,(sf

),0( tf

),1( tf

s

t

)1,()0,()1(),(1 sftsfttsf

),1(),0()1(),(2 tfstfstsf

Page 6: 1 Dr. Scott Schaefer Coons Patches and Gregory Patches

6/39

Coons Patches

Build a ruled surface between pairs of curves

)0,(sf

)1,(sf

s

t

)1,()0,()1(),(1 sftsfttsf

Page 7: 1 Dr. Scott Schaefer Coons Patches and Gregory Patches

7/39

Coons Patches

Build a ruled surface between pairs of curves

),0( tf

),1( tf

s

t

),1(),0()1(),(2 tfstfstsf

Page 8: 1 Dr. Scott Schaefer Coons Patches and Gregory Patches

8/39

Coons Patches

“Correct” surface to make boundaries match

)0,(sf

)1,(sf

s

t

))1,1()0,1()1()1,0()1()0,0()1)(1((),(),( 21 ftsftsftsftstsftsf

),0( tf

),1( tf

Page 9: 1 Dr. Scott Schaefer Coons Patches and Gregory Patches

9/39

Coons Patches

“Correct” surface to make boundaries match

)0,(sf

)1,(sf

s

t

t

t

ff

ffss

tf

tfss

t

tsfsf

1

)1,1()0,1(

)1,0()0,0(1

),1(

),0(1

1)1,()0,(

),0( tf

),1( tf

Page 10: 1 Dr. Scott Schaefer Coons Patches and Gregory Patches

10/39

Properties of Coons Patches

Interpolate arbitrary boundaries Smoothness of surface equivalent to

minimum smoothness of boundary curves Don’t provide higher continuity across

boundaries

Page 11: 1 Dr. Scott Schaefer Coons Patches and Gregory Patches

11/39

Hermite Coons Patches

Given any 4 curves, f(s,0), f(s,1), f(0,t), f(1,t) that meet continuously at the corners and cross-boundary derivatives along these edges

, construct a smooth surface interpolating these curves and derivatives

stf

stf

tsf

tsf

),1(),0()1,()0,( ,,,

Page 12: 1 Dr. Scott Schaefer Coons Patches and Gregory Patches

12/39

Hermite Coons Patches

Use Hermite interpolation!!!

2

2

2

2

)23(

)1(

)1(

)21()1(

)(

tt

tt

tt

tt

tH

)()1,()0,(),( )1,()0,(1 tHsfsftsf t

sftsf

Page 13: 1 Dr. Scott Schaefer Coons Patches and Gregory Patches

13/39

Hermite Coons Patches

Use Hermite interpolation!!!

)(),1(),0(),( ),1(),0(2 sHtftftsf s

tfstf

2

2

2

2

)23(

)1(

)1(

)21()1(

)(

tt

tt

tt

tt

tH

Page 14: 1 Dr. Scott Schaefer Coons Patches and Gregory Patches

14/39

Hermite Coons Patches

Use Hermite interpolation!!!

)(

)1,1()0,1(

)1,0()0,0(

)(),(),(),(

)1,1()0,1(

)1,1()1,1()0,1()0,1(

)1,0()1,0()0,0()0,0(

)1,0()0,0(

21 tH

ff

ff

sHtsftsftsf

vf

vf

uf

vuf

vuf

uf

uf

vuf

vuf

uf

vf

vf

T

2

2

2

2

)23(

)1(

)1(

)21()1(

)(

tt

tt

tt

tt

tH

Page 15: 1 Dr. Scott Schaefer Coons Patches and Gregory Patches

15/39

Hermite Coons Patches

Use Hermite interpolation!!!

)(

)1,1()0,1(

)1,0()0,0(

)(),(),(),(

)1,1()0,1(

)1,1()1,1()0,1()0,1(

)1,0()1,0()0,0()0,0(

)1,0()0,0(

21 tH

ff

ff

sHtsftsftsf

vf

vf

uf

vuf

vuf

uf

uf

vuf

vuf

uf

vf

vf

T

2

2

2

2

)23(

)1(

)1(

)21()1(

)(

tt

tt

tt

tt

tH

Requires mixed partials

Page 16: 1 Dr. Scott Schaefer Coons Patches and Gregory Patches

16/39

Problems With Bezier Patches

00p 10p 20p 30p

01p 11p 21p 31p

02p 12p 22p 32p

03p 13p 23p 33p

Page 17: 1 Dr. Scott Schaefer Coons Patches and Gregory Patches

17/39

Problems With Bezier Patches

s

tsf

),(

Page 18: 1 Dr. Scott Schaefer Coons Patches and Gregory Patches

18/39

Problems With Bezier Patches

t

tsf

),(

Page 19: 1 Dr. Scott Schaefer Coons Patches and Gregory Patches

19/39

Problems With Bezier Patches

Derivatives along edges not independent!!!

Page 20: 1 Dr. Scott Schaefer Coons Patches and Gregory Patches

Solution

20/39

Page 21: 1 Dr. Scott Schaefer Coons Patches and Gregory Patches

Solution

21/39

Page 22: 1 Dr. Scott Schaefer Coons Patches and Gregory Patches

22/39

Gregory Patches

00p 10p 20p 30p

01p tp11tp21

31p

02p sp12sp22 32p

03p 13p 23p 33p

tp12tp22

sp21sp11

Page 23: 1 Dr. Scott Schaefer Coons Patches and Gregory Patches

23/39

Gregory Patch Evaluation

00p 10p 20p 30p

01p tp11tp21

31p

02p sp12sp22 32p

03p 13p 23p 33p

tp12tp22

sp21sp11

ts

psptp

ts

111111

ts

psptp

ts

1

)1( 212121

ts

psptp

ts

2

)1()1( 222222

ts

psptp

ts

1

)1( 121212

Page 24: 1 Dr. Scott Schaefer Coons Patches and Gregory Patches

24/39

Gregory Patch Evaluation

00p 10p 20p 30p

01p tp11tp21

31p

02p sp12sp22 32p

03p 13p 23p 33p

tp12tp22

sp21sp11

Derivative along edge decoupled from adjacent edge at interior points

Page 25: 1 Dr. Scott Schaefer Coons Patches and Gregory Patches

25/39

Gregory Patch Properties

Rational patches Independent control of derivatives along

edges except at end-points Don’t have to specify mixed partial

derivatives Interior derivatives more complicated due to

rational structure Special care must be taken at corners (poles

in rational functions)

Page 26: 1 Dr. Scott Schaefer Coons Patches and Gregory Patches

26/39

Constructing Smooth Surfaces With Gregory Patches Assume a network of cubic curves forming

quad shapes with curves meeting with C1 continuity

Construct a C1 surface that interpolates these curves

Page 27: 1 Dr. Scott Schaefer Coons Patches and Gregory Patches

27/39

Constructing Smooth Surfaces With Gregory Patches Need to specify interior points for cross-

boundary derivatives Gregory patches allow us to consider each

edge independently!!!

Page 28: 1 Dr. Scott Schaefer Coons Patches and Gregory Patches

28/39

Constructing Smooth Surfaces With Gregory Patches Need to specify interior points for cross-

boundary derivatives Gregory patches allow us to consider each

edge independently!!!

Fixed control points!!

Page 29: 1 Dr. Scott Schaefer Coons Patches and Gregory Patches

29/39

Constructing Smooth Surfaces With Gregory Patches Need to specify interior points for cross-

boundary derivatives Gregory patches allow us to consider each

edge independently!!!

0v 1v 2v 3v

0v̂ 1̂v 2v̂ 3v̂

0u 1u 2u

Page 30: 1 Dr. Scott Schaefer Coons Patches and Gregory Patches

30/39

Constructing Smooth Surfaces With Gregory Patches Need to specify interior points for cross-

boundary derivatives Gregory patches allow us to consider each

edge independently!!!

ii

i vtBtv )()( 3

ii

i vtBtv ˆ)()(ˆ 3

ii

i utBtu )()( 2

0v 1v 2v 3v

0v̂ 1̂v 2v̂ 3v̂

0u 1u 2u

Page 31: 1 Dr. Scott Schaefer Coons Patches and Gregory Patches

31/39

Constructing Smooth Surfaces With Gregory Patches Need to specify interior points for cross-

boundary derivatives Gregory patches allow us to consider each

edge independently!!!

)(ˆ)()( tvtutv

Derivatives must be linearly dependent!!! 0v 1v 2v 3v

0v̂ 1̂v 2v̂ 3v̂

0u 1u 2u

Page 32: 1 Dr. Scott Schaefer Coons Patches and Gregory Patches

32/39

Constructing Smooth Surfaces With Gregory Patches Need to specify interior points for cross-

boundary derivatives Gregory patches allow us to consider each

edge independently!!!

33333

00000

ˆ

ˆ

vuv

vuv

By construction, property holds at end-points!!! 0v 1v 2v 3v

0v̂ 1̂v 2v̂ 3v̂

0u 1u 2u

Page 33: 1 Dr. Scott Schaefer Coons Patches and Gregory Patches

33/39

Constructing Smooth Surfaces With Gregory Patches Need to specify interior points for cross-

boundary derivatives Gregory patches allow us to consider each

edge independently!!!

0v 1v 2v 3v

0v̂ 1̂v 2v̂ 3v̂

0u 1u 2u)(ˆ)())1(()())1(( 3030 tvtutttvtt

Assume weights change linearly

Page 34: 1 Dr. Scott Schaefer Coons Patches and Gregory Patches

34/39

Constructing Smooth Surfaces With Gregory Patches Need to specify interior points for cross-

boundary derivatives Gregory patches allow us to consider each

edge independently!!!

0v 1v 2v 3v

0v̂ 1̂v 2v̂ 3v̂

0u 1u 2u)(ˆ)())1(()())1(( 3030 tvtutttvtt

Assume weights change linearly

A quartic function. Not possible!!!

Page 35: 1 Dr. Scott Schaefer Coons Patches and Gregory Patches

35/39

Constructing Smooth Surfaces With Gregory Patches Need to specify interior points for cross-

boundary derivatives Gregory patches allow us to consider each

edge independently!!!

0v 1v 2v 3v

0v̂ 1̂v 2v̂ 3v̂

0u 1u 2u)(ˆ)())1(()())1(( 3030 tvtutttvtt

Require v(t) to be quadratic

033 3210 vvvv

Page 36: 1 Dr. Scott Schaefer Coons Patches and Gregory Patches

36/39

Constructing Smooth Surfaces With Gregory Patches Need to specify interior points for cross-

boundary derivatives Gregory patches allow us to consider each

edge independently!!!

0v 1v 2v 3v

0v̂ 1̂v 2v̂ 3v̂

0u 1u 2u323

2133322

3032

130011

0330

3003

ˆ

ˆ

uuvvv

uuvvv

033 3210 vvvv

Page 37: 1 Dr. Scott Schaefer Coons Patches and Gregory Patches

37/39

Constructing Smooth Surfaces With Gregory Patches Problem: construction is not symmetric

is quadratic is cubic

0v 1v 2v 3v

0v̂ 1̂v 2v̂ 3v̂

0u 1u 2u323

2133322

3032

130011

0330

3003

ˆ

ˆ

uuvvv

uuvvv

033 3210 vvvv

)(ˆ tv)(tv

Page 38: 1 Dr. Scott Schaefer Coons Patches and Gregory Patches

38/39

Constructing Smooth Surfaces With Gregory Patches Solution: assume v(t) is linear and use

to find Same operation to find

0v 1v 2v 3v

0v̂ 1̂v 2v̂ 3v̂

0u 1u 2u323

2133322

3032

130011

0330

3003

ˆ

ˆ

uuvvv

uuvvv

033 3210 vvvv

332

031

2331

032

1 , vvvvvv 21 ˆ,ˆ vv

21, vv

Page 39: 1 Dr. Scott Schaefer Coons Patches and Gregory Patches

39/39

Constructing Smooth Surfaces With Gregory Patches Advantages

Simple construction with finite set of (rational) polynomials

DisadvantagesNot very flexible since cross-boundary

derivatives are not full cubics

If cubic curves not available, can estimate tangent planes and build hermite curves