21
MAT-INF 4170/9170 - Lecture 1 - 18/1-2017 Me: Martin Reimers, Professor computational math. > Room 1015, martinre [snabela] math.uio.no You? Need a student representative ("Tillitsstudent") > Stein Dahl sadahl [snabela] student.matnat.uio.no was chosen The course: > 10 credits/studiepoeng > About 17 lectures, wednesdays 1015-1200 (alternatively tuesdays) http://www.uio.no/studier/emner/matnat/math/MAT-INF4170/v17/timeplan/index.html > Lecture notes: posted after each lecture > Curriculum: From the Compendium http://www.uio.no/studier/emner/matnat/math/MAT-INF4170/v17/pensumliste/index.html > 4 obligs. All must be passed > Oblig tutorials before and after submission (tuesdays) > Oral exam may/june > Recommended Prerequisites MAT1100, MAT1110, MAT1120, MAT-INF1100, INF1100 Programming: C++, matlab, python, ... > Additional reading (not required): G. Farin. "Curves and surfaces for CAGD: a practical guide" C. Deboor "A practical Guide to Splines" L. Schumaker "Spline Functions: basic theory" > Learning outcomes: spline methods for modelling curves and surfaces, with emphasis both on the mathematical theory and practical methods > Intro slides

MAT-INF 4170/9170 - Lecture 1 - 18/1-2017 · MAT-INF 4170/9170 - Lecture 1 - 18/1-2017 • Me: ... I Mer avanserte matematiske formater for glatt/krum geometri, ... Combine line segments

Embed Size (px)

Citation preview

Page 1: MAT-INF 4170/9170 - Lecture 1 - 18/1-2017 · MAT-INF 4170/9170 - Lecture 1 - 18/1-2017 • Me: ... I Mer avanserte matematiske formater for glatt/krum geometri, ... Combine line segments

MAT-INF 4170/9170 - Lecture 1 - 18/1-2017

• Me: Martin Reimers, Professor computational math. > Room 1015, martinre [snabela] math.uio.no

• You?

• Need a student representative ("Tillitsstudent")> Stein Dahl sadahl [snabela] student.matnat.uio.no was chosen

• The course:

> 10 credits/studiepoeng

> About 17 lectures, wednesdays 1015-1200 (alternatively tuesdays)– http://www.uio.no/studier/emner/matnat/math/MAT-INF4170/v17/timeplan/index.html

> Lecture notes: posted after each lecture

> Curriculum: From the Compendium– http://www.uio.no/studier/emner/matnat/math/MAT-INF4170/v17/pensumliste/index.html

> 4 obligs. All must be passed

> Oblig tutorials before and after submission (tuesdays)

> Oral exam may/june

> Recommended Prerequisites– MAT1100, MAT1110, MAT1120, MAT-INF1100, INF1100– Programming: C++, matlab, python, ...

> Additional reading (not required):– G. Farin. "Curves and surfaces for CAGD: a practical guide"– C. Deboor "A practical Guide to Splines" – L. Schumaker "Spline Functions: basic theory"

> Learning outcomes: spline methods for modelling curves and surfaces, with emphasis both on the mathematical theory and practical methods

> Intro slides

Page 2: MAT-INF 4170/9170 - Lecture 1 - 18/1-2017 · MAT-INF 4170/9170 - Lecture 1 - 18/1-2017 • Me: ... I Mer avanserte matematiske formater for glatt/krum geometri, ... Combine line segments

MAT-INF4170/9170 Spline Methods

Introlecture 18. january 2017

Page 3: MAT-INF 4170/9170 - Lecture 1 - 18/1-2017 · MAT-INF 4170/9170 - Lecture 1 - 18/1-2017 • Me: ... I Mer avanserte matematiske formater for glatt/krum geometri, ... Combine line segments

Splines Piecewise polynomials

Page 4: MAT-INF 4170/9170 - Lecture 1 - 18/1-2017 · MAT-INF 4170/9170 - Lecture 1 - 18/1-2017 • Me: ... I Mer avanserte matematiske formater for glatt/krum geometri, ... Combine line segments

Splines Piecewise polynomials

Page 5: MAT-INF 4170/9170 - Lecture 1 - 18/1-2017 · MAT-INF 4170/9170 - Lecture 1 - 18/1-2017 • Me: ... I Mer avanserte matematiske formater for glatt/krum geometri, ... Combine line segments

Splines Piecewise polynomials

Page 6: MAT-INF 4170/9170 - Lecture 1 - 18/1-2017 · MAT-INF 4170/9170 - Lecture 1 - 18/1-2017 • Me: ... I Mer avanserte matematiske formater for glatt/krum geometri, ... Combine line segments

Splines Piecewise polynomials

Page 7: MAT-INF 4170/9170 - Lecture 1 - 18/1-2017 · MAT-INF 4170/9170 - Lecture 1 - 18/1-2017 • Me: ... I Mer avanserte matematiske formater for glatt/krum geometri, ... Combine line segments

Spline-applications   Lots of applications, and interesting research!

  Representing functions, curves and surfaces   Fonts, data-approximation, statistics,…

  Finite element methods – isogeometric analysis

  Entertainment: movies, games

  CAD/CAM

  …..

Page 8: MAT-INF 4170/9170 - Lecture 1 - 18/1-2017 · MAT-INF 4170/9170 - Lecture 1 - 18/1-2017 • Me: ... I Mer avanserte matematiske formater for glatt/krum geometri, ... Combine line segments

Spline-applications   Animation movies, special effects Geometrisk modellering - glattere flater

I Mer avanserte matematiske formater for glatt/krum geometri,f.eks splines

I tilsvarende vektor format for bilder

I Enklere a editere/animere/komprimere/transportere

I ... mer beregninger for a tegne (konvertere til trekanter)

Page 9: MAT-INF 4170/9170 - Lecture 1 - 18/1-2017 · MAT-INF 4170/9170 - Lecture 1 - 18/1-2017 • Me: ... I Mer avanserte matematiske formater for glatt/krum geometri, ... Combine line segments

Spline-applications   Games

Data-grafikk - kantete silhouetter

Tekstur gir inntrykk av pen og glatt geometri

... men ikke langs silhouettene!

Page 10: MAT-INF 4170/9170 - Lecture 1 - 18/1-2017 · MAT-INF 4170/9170 - Lecture 1 - 18/1-2017 • Me: ... I Mer avanserte matematiske formater for glatt/krum geometri, ... Combine line segments

Spline-applications   CAD/CAM Composing patches ...

Nice shading/reflections reveal continuity

How to render spline patches? Convert to triangles ...

Page 7

Page 11: MAT-INF 4170/9170 - Lecture 1 - 18/1-2017 · MAT-INF 4170/9170 - Lecture 1 - 18/1-2017 • Me: ... I Mer avanserte matematiske formater for glatt/krum geometri, ... Combine line segments

Further studies   MAT-INF42160 Topics in geometric modeling (fall)

Page 12: MAT-INF 4170/9170 - Lecture 1 - 18/1-2017 · MAT-INF 4170/9170 - Lecture 1 - 18/1-2017 • Me: ... I Mer avanserte matematiske formater for glatt/krum geometri, ... Combine line segments

Section 1 - Introduction• Basic concepts, curves in the plane

Affine and convex combinations

Page 13: MAT-INF 4170/9170 - Lecture 1 - 18/1-2017 · MAT-INF 4170/9170 - Lecture 1 - 18/1-2017 • Me: ... I Mer avanserte matematiske formater for glatt/krum geometri, ... Combine line segments

Convex Hulls

Page 14: MAT-INF 4170/9170 - Lecture 1 - 18/1-2017 · MAT-INF 4170/9170 - Lecture 1 - 18/1-2017 • Me: ... I Mer avanserte matematiske formater for glatt/krum geometri, ... Combine line segments

Line Segments

convex combination

Page 15: MAT-INF 4170/9170 - Lecture 1 - 18/1-2017 · MAT-INF 4170/9170 - Lecture 1 - 18/1-2017 • Me: ... I Mer avanserte matematiske formater for glatt/krum geometri, ... Combine line segments

Curves

Page 16: MAT-INF 4170/9170 - Lecture 1 - 18/1-2017 · MAT-INF 4170/9170 - Lecture 1 - 18/1-2017 • Me: ... I Mer avanserte matematiske formater for glatt/krum geometri, ... Combine line segments

Interpolating Curves

Combine line segments by affine combination

... to form a quadratic curve

Repeated affine combinations

Quadratic case

Page 17: MAT-INF 4170/9170 - Lecture 1 - 18/1-2017 · MAT-INF 4170/9170 - Lecture 1 - 18/1-2017 • Me: ... I Mer avanserte matematiske formater for glatt/krum geometri, ... Combine line segments

Examples

Page 18: MAT-INF 4170/9170 - Lecture 1 - 18/1-2017 · MAT-INF 4170/9170 - Lecture 1 - 18/1-2017 • Me: ... I Mer avanserte matematiske formater for glatt/krum geometri, ... Combine line segments

Interpolation of four points (cubics)Can generalize to four points, combining quadratic curves:

Page 19: MAT-INF 4170/9170 - Lecture 1 - 18/1-2017 · MAT-INF 4170/9170 - Lecture 1 - 18/1-2017 • Me: ... I Mer avanserte matematiske formater for glatt/krum geometri, ... Combine line segments

PROPERTIES

• Get interpolating polynomial curves for any number of points• Can show that q0,p(t)=∑ci li,p(t) where li,p(tj)=1 if i=j and 0 otherwise • Impractical for many points• Not convex combinations => unstable for large p

General interpolation

q0,p(t)

Look for alternatives!

Page 20: MAT-INF 4170/9170 - Lecture 1 - 18/1-2017 · MAT-INF 4170/9170 - Lecture 1 - 18/1-2017 • Me: ... I Mer avanserte matematiske formater for glatt/krum geometri, ... Combine line segments

Bezier curvesRepeated convex combinations

Quadratic case

Explicit form:

Page 21: MAT-INF 4170/9170 - Lecture 1 - 18/1-2017 · MAT-INF 4170/9170 - Lecture 1 - 18/1-2017 • Me: ... I Mer avanserte matematiske formater for glatt/krum geometri, ... Combine line segments

Examples