geometric modeling csce 645/viza 675

56
1 Dr. Scott Schaefer Geometric Modeling CSCE 645/VIZA 675

Upload: rudolf

Post on 09-Jan-2016

52 views

Category:

Documents


0 download

DESCRIPTION

Geometric Modeling CSCE 645/VIZA 675. Dr. Scott Schaefer. Course Information. Instructor Dr. Scott Schaefer HRBB 527B Office Hours: MW 9:00am – 10:00am (or by appointment) Website: http://courses.cs.tamu.edu/schaefer/645_Spring2013. Geometric Modeling. Surface representations - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Geometric Modeling  CSCE 645/VIZA 675

1

Dr. Scott Schaefer

Geometric Modeling CSCE 645/VIZA 675

Page 2: Geometric Modeling  CSCE 645/VIZA 675

2/55

Course Information

Instructor Dr. Scott Schaefer HRBB 527B Office Hours: MW 9:00am – 10:00am

(or by appointment)

Website: http://courses.cs.tamu.edu/schaefer/645_Spring2013

Page 3: Geometric Modeling  CSCE 645/VIZA 675

3/55

Geometric Modeling

Surface representations Industrial design

Page 4: Geometric Modeling  CSCE 645/VIZA 675

4/55

Geometric Modeling

Surface representations Industrial design Movies and animation

Page 5: Geometric Modeling  CSCE 645/VIZA 675

5/55

Geometric Modeling

Surface representations Industrial design Movies and animation

Surface reconstruction/Visualization

Page 6: Geometric Modeling  CSCE 645/VIZA 675

6/55

Topics Covered Polynomial curves and surfaces

Lagrange interpolation Bezier/B-spline/Catmull-Rom curves Tensor Product Surfaces Triangular Patches Coons/Gregory Patches

Differential Geometry Subdivision curves and surfaces Boundary representations Surface Simplification Solid Modeling Free-Form Deformations Barycentric Coordinates

Page 7: Geometric Modeling  CSCE 645/VIZA 675

7/55

What you’re expected to know

Programming Experience Assignments in C/C++

Simple Mathematics

Graphics is mathematics made visible

Page 8: Geometric Modeling  CSCE 645/VIZA 675

8/55

How much math?

General geometry/linear algebra Matrices

Multiplication, inversion, determinant, eigenvalues/vectors

Vectors Dot product, cross product, linear independence

Proofs Induction

Page 9: Geometric Modeling  CSCE 645/VIZA 675

9/55

Required Textbook

Page 10: Geometric Modeling  CSCE 645/VIZA 675

10/55

Grading

50% Homework 50% Class Project

No exams!

Page 11: Geometric Modeling  CSCE 645/VIZA 675

11/55

Class Project

Topic: your choice Integrate with research Originality

Reports Proposal: 2/7 Update #1: 3/7 Update #2: 4/9 Final report/presentation: 4/25

Page 12: Geometric Modeling  CSCE 645/VIZA 675

12/55

Class Project Grading

10% Originality 20% Reports (5% each) 5% Final Oral Presentation 65% Quality of Work

http://courses.cs.tamu.edu/schaefer/645_Spring2013/assignments/project.html

Page 13: Geometric Modeling  CSCE 645/VIZA 675

Honor Code

Your work is your own You may discuss concepts with others Do not look at other code.

You may use libraries not related to the main part of the assignment, but clear it with me first just to be safe.

13/55

Page 14: Geometric Modeling  CSCE 645/VIZA 675

14/55

Questions?

Page 15: Geometric Modeling  CSCE 645/VIZA 675

15/55

Vectors

v

Page 16: Geometric Modeling  CSCE 645/VIZA 675

16/55

Vectors

v

u

?uv

Page 17: Geometric Modeling  CSCE 645/VIZA 675

17/55

Vectors

v

uuv

Page 18: Geometric Modeling  CSCE 645/VIZA 675

18/55

Vectors

v

uuv

v

u

? uv

Page 19: Geometric Modeling  CSCE 645/VIZA 675

19/55

Vectors

v

uuv

vu

uv

Page 20: Geometric Modeling  CSCE 645/VIZA 675

20/55

Vectors

v

uuv

v

?vcvu

uv

Page 21: Geometric Modeling  CSCE 645/VIZA 675

21/55

Vectors

v

uuv

v

vc

vu

uv

Page 22: Geometric Modeling  CSCE 645/VIZA 675

22/55

Points

p

q

? qp

Page 23: Geometric Modeling  CSCE 645/VIZA 675

23/55

Points

p

q

undefinedqp

Page 24: Geometric Modeling  CSCE 645/VIZA 675

24/55

Points

p

q

?2

qp

Page 25: Geometric Modeling  CSCE 645/VIZA 675

25/55

Points

p

q

2

qp

Page 26: Geometric Modeling  CSCE 645/VIZA 675

26/55

Points

1 p=p 0 p=0 (vector) c p=undefined where c 0,1 p – q = v (vector)

Page 27: Geometric Modeling  CSCE 645/VIZA 675

27/55

Points

n

kkk pc

0

Page 28: Geometric Modeling  CSCE 645/VIZA 675

28/55

Points

n

kkk

n

kk

n

kkk ppcpcpc

000

00

Page 29: Geometric Modeling  CSCE 645/VIZA 675

29/55

Points

n

kkk

n

kk

n

kkk ppcpcpc

000

00

00

n

kkc

Page 30: Geometric Modeling  CSCE 645/VIZA 675

30/55

Points

n

kkk

n

kk

n

kkk ppcpcpc

000

00

n

kkk

n

kk

n

kkk

n

kk ppcpcpcc

000

000

0

Page 31: Geometric Modeling  CSCE 645/VIZA 675

31/55

Points

n

kkk

n

kk

n

kkk ppcpcpc

000

00

vectorppcpccn

kkk

n

kkk

n

kk

00

00

0

Page 32: Geometric Modeling  CSCE 645/VIZA 675

32/55

Points

n

kkk

n

kk

n

kkk ppcpcpc

000

00

vectorppcpccn

kkk

n

kkk

n

kk

00

00

0

10

n

kkc

Page 33: Geometric Modeling  CSCE 645/VIZA 675

33/55

Points

n

kkk

n

kk

n

kkk ppcpcpc

000

00

vectorppcpccn

kkk

n

kkk

n

kk

00

00

0

n

kkk

n

kk

n

kkk

n

kk ppcpcpcc

000

000

1

Page 34: Geometric Modeling  CSCE 645/VIZA 675

34/55

Points

n

kkk

n

kk

n

kkk ppcpcpc

000

00

vectorppcpccn

kkk

n

kkk

n

kk

00

00

0

pointppcppccn

kkk

n

kkk

n

kk

000

00

1

Page 35: Geometric Modeling  CSCE 645/VIZA 675

35/55

Barycentric Coordinates

1p

3p2p

Page 36: Geometric Modeling  CSCE 645/VIZA 675

36/55

Barycentric Coordinates

v

1p

3p2p

k

kk pv

Page 37: Geometric Modeling  CSCE 645/VIZA 675

37/55

Barycentric Coordinates

v

1p

3p2p

k

kk pv

1k

k

Page 38: Geometric Modeling  CSCE 645/VIZA 675

38/55

Barycentric Coordinates

v

1p

3p2p

k

kk pv

1k

k

0321 kpppv

Page 39: Geometric Modeling  CSCE 645/VIZA 675

39/55

Barycentric Coordinates

v

1p

3p2p

k

kk pv

1k

k

0321 kpppv 01,1 kkjkk ppv

Page 40: Geometric Modeling  CSCE 645/VIZA 675

40/55

Barycentric Coordinates

v

1p

3p2p

k

kk pv

1k

k

1111

3

2

1321 vppp

Page 41: Geometric Modeling  CSCE 645/VIZA 675

41/55

Barycentric Coordinates

v

1p

3p2p

k

kk pv

1k

k

1111

1

321

3

2

1 vppp

Page 42: Geometric Modeling  CSCE 645/VIZA 675

42/55

Convex Sets

If , then the form a convex combination

k

kk pv

0k k

Page 43: Geometric Modeling  CSCE 645/VIZA 675

43/55

Convex Hulls

Smallest convex set containing all the kp

Page 44: Geometric Modeling  CSCE 645/VIZA 675

44/55

Convex Hulls

Smallest convex set containing all the kp

Page 45: Geometric Modeling  CSCE 645/VIZA 675

45/55

Convex Hulls

If pi and pj lie within the convex hull,

then the line pipj is also contained within the convex hull

Page 46: Geometric Modeling  CSCE 645/VIZA 675

46/55

Convex Hulls

If pi and pj lie within the convex hull,

then the line pipj is also contained within the convex hull

Page 47: Geometric Modeling  CSCE 645/VIZA 675

47/55

Convex Hulls

If pi and pj lie within the convex hull,

then the line pipj is also contained within the convex hull

Page 48: Geometric Modeling  CSCE 645/VIZA 675

48/55

Convex Hulls

If pi and pj lie within the convex hull,

then the line pipj is also contained within the convex hull

Page 49: Geometric Modeling  CSCE 645/VIZA 675

49/55

Convex Hulls

If pi and pj lie within the convex hull,

then the line pipj is also contained within the convex hull

Page 50: Geometric Modeling  CSCE 645/VIZA 675

50/55

Convex Hulls

If pi and pj lie within the convex hull,

then the line pipj is also contained within the convex hull

Page 51: Geometric Modeling  CSCE 645/VIZA 675

51/55

Convex Hulls

If pi and pj lie within the convex hull,

then the line pipj is also contained within the convex hull

Page 52: Geometric Modeling  CSCE 645/VIZA 675

52/55

Convex Hulls

If pi and pj lie within the convex hull,

then the line pipj is also contained within the convex hull

Page 53: Geometric Modeling  CSCE 645/VIZA 675

53/55

Convex Hulls

If pi and pj lie within the convex hull,

then the line pipj is also contained within the convex hull

kk

kkk ppv ConvexHull0 v

Page 54: Geometric Modeling  CSCE 645/VIZA 675

54/55

Affine Transformations

Preserve barycentric combinations

Examples: translation, rotation, uniform scaling, non-uniform scaling, shear

k k

kkkk pvpv )()(

Page 55: Geometric Modeling  CSCE 645/VIZA 675

55/55

Other Transformations

Conformal Preserve angles under transformation Examples: translation, rotation, uniform

scaling Rigid

Preserve angles and length under transformation

Examples: translation, rotation

Page 56: Geometric Modeling  CSCE 645/VIZA 675

56/55

Vector Spaces

A set of vectors vk are independent if

The span of a set of vectors vk is

A basis of a vector space is a set of

independent vectors vk such that

kj

jjkj vvtsk ..existnotdoesthere,

}|{ k

kkvvv

)(span, kvvv