3.1 Classic Differential Geometry Hao Li http://cs599.hao-li.com 1 - - PowerPoint PPT Presentation

3 1 classic differential geometry
SMART_READER_LITE
LIVE PREVIEW

3.1 Classic Differential Geometry Hao Li http://cs599.hao-li.com 1 - - PowerPoint PPT Presentation

Spring 2014 CSCI 599: Digital Geometry Processing 3.1 Classic Differential Geometry Hao Li http://cs599.hao-li.com 1 Spring 2014 CSCI 599: Digital Geometry Processing 3.1 Classic Differential Geometry With a Twist! Hao Li


slide-1
SLIDE 1

CSCI 599: Digital Geometry Processing

Hao Li

http://cs599.hao-li.com

1

Spring 2014

3.1 Classic Differential Geometry

slide-2
SLIDE 2

CSCI 599: Digital Geometry Processing

Hao Li

http://cs599.hao-li.com

2

Spring 2014

3.1 Classic Differential Geometry

With a Twist!

slide-3
SLIDE 3

Administrative

3

  • Exercise handouts: 11:59 PM every 2nd Wednesday
  • My first office hours later from 2pm to 4pm
  • This week only lecture.
slide-4
SLIDE 4

Some Updates: run.usc.edu/vega

4

Another awesome free library with half-edge data-structure By Prof. Jernej Barbic

slide-5
SLIDE 5

FYI

5

MeshLab Popular Mesh Processing Software (meshlab.sourceforge.net)

slide-6
SLIDE 6

FYI

6

BeNTO3D Mesh Processing Framework for Mac (www.bento3d.com)

slide-7
SLIDE 7

Last Time

7

Discrete Representations

  • Explicit (parametric, polygonal meshes)
  • Implicit Surfaces (SDF, grid representation)
  • Conversions
  • E→I: Closest Point, SDF, Fast Marching
  • I→E: Marching Cubes Algorithm

Topology Geometry

slide-8
SLIDE 8

Differential Geometry

8

Why do we care?

  • Geometry of surfaces
  • Mothertongue of physical theories
  • Computation: processing / simulation
slide-9
SLIDE 9

Motivation

9

We need differential geometry to compute

  • surface curvature
  • paramaterization distortion
  • deformation energies
slide-10
SLIDE 10

Applications: 3D Reconstruction

10

slide-11
SLIDE 11

Applications: Head Modeling

11

slide-12
SLIDE 12

Applications: Facial Animation

12

slide-13
SLIDE 13

Motivation

13

Geometry is the key

  • studied for centuries (Cartan, Poincaré, Lie,

Hodge, de Rham, Gauss, Noether…)

  • mostly differential geometry
  • differential and integral calculus
  • invariants and symmetries
slide-14
SLIDE 14

Getting Started

14

How to apply DiffGeo ideas?

  • surfaces as a collecition of samples
  • and topology (connectivity)
  • apply continuous ideas
  • BUT: setting is discrete
  • what is the right way?
  • discrete vs. discretized

Let’s look at that first

slide-15
SLIDE 15

Getting Started

15

What characterizes structure(s)?

  • What is shape?
  • Euclidean Invariance
  • What is physics?
  • Conservation/Balance Laws
  • What can we measure?
  • area, curvature, mass, flux, circulation
slide-16
SLIDE 16

Getting Started

16

Invariant descriptors

  • quantities invariant under a set of transformations

Intrinsic descriptor

  • quantities which do notd depend on a coordinate frame
slide-17
SLIDE 17

Outline

17

  • Parametric Curves
  • Parametric Surfaces

Formalism & Intuition

slide-18
SLIDE 18

Differential Geometry

18

Leonard Euler (1707-1783) Carl Friedrich Gauss (1777-1855)

slide-19
SLIDE 19

Parametric Curves

19

x(t) =   x(t) y(t) z(t)   x : [a, b] ⊂ IR → IR3

x(a) x(b) xt(t) a t b

xt(t) := dx(t) dt =   dx(t) /dt dy(t) /dt dz(t) /dt  

x(t)

slide-20
SLIDE 20

Recall: Mappings

20

Injective

NO SELF-INTERSECTIONS

Surjective

SELF-INTERSECTIONS AMBIGUOUS PARAMETERIZATION

Bijective

slide-21
SLIDE 21

Parametric Curves

21

A parametric curve is

  • simple: is injective (no self-intersections)
  • differentiable: is defined for all
  • regular: for all

x(t) x(t) xt(t) xt(t) 6= 0 t ∈ [a, b] t ∈ [a, b]

x(a) x(b) x(t) xt(t)

slide-22
SLIDE 22

Length of a Curve

22

Let and

ti = a + i∆t xi = x(ti) x(a) x(b) a b ti ∆t xi

slide-23
SLIDE 23

Length of a Curve

23

Polyline chord length Curve arc length ( )

∆t → 0 S = ⇥

i

⇥∆xi⇥ = ⇥

i

  • ∆xi

∆t

  • ∆t ,

∆xi := ⇥xi+1 xi⇥

x(a) x(b) a b ti ∆t xi

s = s(t) = t

a

xt dt

norm change length = integration of infinitesimal change × norm of speed

slide-24
SLIDE 24

Re-Parameterization

24

Mapping of parameter domain Re-parameterization w.r.t. Derivative (chain rule)

u : [a, b] → [c, d] [c, d] IR3 , t ⇥ x(u(t)) dx(u(t)) dt = dx du du dt = xu(u(t)) ut(t) u(t)

slide-25
SLIDE 25

Re-Parameterization

25

⇒ g(φ(t)) = f(t) f :

  • 0, 1

2 ⇥ IR2 , t ⇥ (4t, 2t) φ :

  • 0, 1

2 ⇥ [0, 1] , t ⇥ 2t g : [0, 1] IR2 , t ⇥ (2t, t)

Example

slide-26
SLIDE 26

Arc Length Parameterization

26

Mapping of parameter domain: Parameter for equals length from to Special properties of resulting curve

t ⇥ s(t) = t

a

⇤xt⇤ dt ds = xt dt x(s) = x(s(t)) ⇥xs(s)⇥ = 1 , xs(s) · xss(s) = 0 s x(s) x(a) x(s)

defines orthonormal frame same infinitesimal change

slide-27
SLIDE 27

The Frenet Frame

27

Taylor expansion

x(t + h) = x(t) + xt(t) h + 1 2xtt(t) h2 + 1 6xttt(t) h3 + . . .

Define local frame (Frenet frame)

t = xt xt b = xt xtt ⇥xt xtt⇥ n = b × t (t, n, b)

tangent main normal binormal

for convergence analysis and approximations

slide-28
SLIDE 28

The Frenet Frame

28

Orthonormalization of local frame

xt xtt xttt b t n

local affine frame Frenet frame

slide-29
SLIDE 29

The Frenet Frame

29

Frenet-Serret: Derivatives w.r.t. arc length s

ts = +κn ns = −κt +τb bs = −τn

Curvature (deviation from straight line)

κ = xss

Torsion (deviation from planarity)

τ = 1 κ2 det([xs, xss, xsss])

b t n

slide-30
SLIDE 30

Curvature and Torsion

30

Planes defined by and two vectors:

  • osculating plane: vectors and
  • normal plane: vectors and
  • rectifying plane: vectors and

Osculating circle

  • second order contact with curve
  • center
  • radius

x t b b t 1/κ n n c = x + (1/κ)n

b t n

slide-31
SLIDE 31

Curvature and Torsion

31

  • Curvature: Deviation from straight line
  • Torsion: Deviation from planarity
  • Independent of parameterization
  • intrinsic properties of the curve
  • Euclidean invariants
  • invariant under rigid motion
  • Define curve uniquely up to a rigid motion
slide-32
SLIDE 32

Curvature: Some Intuition

32

A line through two points on the curve (Secant)

slide-33
SLIDE 33

Curvature: Some Intuition

33

A line through two points on the curve (Secant)

slide-34
SLIDE 34

Curvature: Some Intuition

34

Tangent, the first approximation

limiting secant as the two points come together

slide-35
SLIDE 35

Curvature: Some Intuition

35

Circle of curvature

Consider the circle passing through 3 pints of the curve

slide-36
SLIDE 36

Curvature: Some Intuition

36

Circle of curvature

The limiting circle as three points come together

slide-37
SLIDE 37

Curvature: Some Intuition

37

Radius of curvature r

slide-38
SLIDE 38

Curvature: Some Intuition

38

Radius of curvature r

slide-39
SLIDE 39

Curvature: Some Intuition

39

Signed curvature

Sense of traversal along curve

slide-40
SLIDE 40

Curvature: Some Intuition

40

Gauß map

Point on curve maps to point on unit circle

slide-41
SLIDE 41

Curvature: Some Intuition

41

Shape operator (Weingarten map)

Change in normal as we slide along curve describes directional curvature

negative directional derivative D of Gauß map using normals as degrees of freedom → accuracy/convergence/implementation (discretization)

slide-42
SLIDE 42

Curvature: Some Intuition

42

Turning number, k

Number of orbits in Gaussian image

slide-43
SLIDE 43

Curvature: Some Intuition

43

Turning number theorem

For a closed curve, the integral of curvature is an integer multiple of 2π

slide-44
SLIDE 44

Take Home Message

44

In the limit of a refinement sequence, discrete measure of length and curvature agree with continuous measures

slide-45
SLIDE 45

Outline

45

  • Parametric Curves
  • Parametric Surfaces
slide-46
SLIDE 46

Surfaces

46

What characterizes shape?

  • shape does not depend on Euclidean motions
  • metric and curvatures
  • smooth continuous notions to discrete notions
slide-47
SLIDE 47

Metric on Surfaces

47

Measure Stuff

  • angle, length, area
  • requires an inner product
  • we have:
  • Euclidean inner product in domain
  • we want to turn this into:
  • inner product on surface
slide-48
SLIDE 48

Parametric Surfaces

48

Continuous surface Normal vector Assume regular parameterization

x(u, v) =   x(u, v) y(u, v) z(u, v)   n = xu xv ⇥xu xv⇥ xu xv ⇥= 0

n p xu xv

normal exists

slide-49
SLIDE 49

Angles on Surface

49

Curve in uv-plane defines curve on the surface Two curves and intersecting at

  • angle of intersection?
  • two tangents and
  • compute inner product

c(t) = x(u(t) , v(t)) [u(t), v(t)] x(u, v) c1 c2 p t1 t2 ti = αixu + βixv tT

1 t2 = cos θ t1 t2

n p xu xv

c1 c2

slide-50
SLIDE 50

Angles on Surface

50

Curve in uv-plane defines curve on the surface Two curves and intersecting at

[u(t), v(t)] x(u, v) c1 c2 p c(t) = x(u(t) , v(t)) tT

1 t2 = (α1xu + β1xv)T (α2xu + β2xv)

= (α1, β1) xT

u xu

xT

u xv

xT

u xv

xT

v xv

⇥ α2 β2 ⇥ = α1α2xT

u xu + (α1β2 + α2β1) xT u xv + β1β2xT v xv

slide-51
SLIDE 51

First Fundamental Form

51

First fundamental form

I = E F F G ⇥ := xT

u xu

xT

u xv

xT

u xv

xT

v xv

Defines inner product on tangent space

⇤α1 β1 ⇥ , α2 β2 ⇥⌅ := α1 β1 ⇥T I α2 β2 ⇥

slide-52
SLIDE 52

First Fundamental Form

52

First fundamental form allows to measure (w.r.t. surface metric) Angles Length Area

I ds2 = (du, dv), (du, dv)⇥ = Edu2 + 2Fdudv + Gdv2 dA = ⌅xu ⇤ xv⌅ du dv = ⇥ xT

u xu · xT v xv (xT u xv)2 du dv

=

  • EG F 2du dv

t>

1 t2 = h(α1, β1), (α2, β2)i

squared infinitesimal length infinitesimal Area cross product → determinant with unit vectors → area

slide-53
SLIDE 53

Sphere Example

53

Spherical parameterization Tangent vectors First fundamental Form

x(u, v) =   cos u sin v sin u sin v cos v   , (u, v) ∈ [0, 2π) × [0, π) xu(u, v) =   − sin u sin v cos u sin v   xv(u, v) =   cos u cos v sin u cos v − sin v   I =

  • sin2 v

1 ⇥

slide-54
SLIDE 54

Sphere Example

54

Length of equator x(t, π/2)

2π 1 ds = 2π ⇥ E (ut)2 + 2Futvt + G (vt)2 dt = 2π sin v dt = 2π sin v = 2π

slide-55
SLIDE 55

Sphere Example

55

Area of a sphere

π 2π 1 dA = π 2π ⇥ EG − F 2 du dv = π 2π sin v du dv = 4π

slide-56
SLIDE 56

Normal Curvature

56

Tangent vector …

t n p t xu xv t = cos φ xu ∥xu∥ + sin φ xv ∥xv∥

unit vector

slide-57
SLIDE 57

Normal Curvature

57

… defines intersection plane, yielding curve c(t)

t n p t = cos φ xu ∥xu∥ + sin φ xv ∥xv∥ c(t)

normal curve

slide-58
SLIDE 58

Geometry of the Normal

58

Gauss map

  • normal at point
  • consider curve in surface again
  • study its curvature at p
  • normal “tilts” along curve
slide-59
SLIDE 59

Normal Curvature

59

Normal curvature is defined as curvature of the normal curve at point With second fundamental form normal curvature can be computed as

II =

  • e

f f g ⇥ := ⇤ xT

uun

xT

uvn

xT

uvn

xT

vvn

⌅ κn(¯ t) = ¯ tT II¯ t ¯ tT I¯ t = ea2 + 2fab + gb2 Ea2 + 2Fab + Gb2

t = axu + bxv ¯ t = (a, b)

κn(t) c(t) p(t) = x(u, v)

slide-60
SLIDE 60

Surface Curvature(s)

60

Principal curvatures

  • Maximum curvature
  • Minimum curvature
  • Euler theorem
  • Corresponding principal directions , are orthogonal

κ1 = max

φ

κn(φ) κ2 = min

φ κn(φ)

κn(φ) = κ1 cos2 φ + κ2 sin2 φ e1 e2

slide-61
SLIDE 61

Surface Curvature(s)

61

Principal curvatures

  • Maximum curvature
  • Minimum curvature
  • Euler theorem
  • Corresponding principal directions , are orthogonal

κ1 = max

φ

κn(φ) κ2 = min

φ κn(φ)

κn(φ) = κ1 cos2 φ + κ2 sin2 φ e1 e2

Special curvatures

  • Mean curvature
  • Gaussian curvature

H = κ1 + κ2 2 K = κ1 · κ2

intrinsic (only first FF) extrinsic

slide-62
SLIDE 62

Invariants

62

Gaussian and mean curvature

  • determinant and trace only
  • eigenvalues and orthovectors
slide-63
SLIDE 63

Mean Curvature

63

Integral representations

slide-64
SLIDE 64

Curvature of Surfaces

64

Mean curvature

  • everywhere minimal surface

H = 0 → H = κ1 + κ2 2

soap film

slide-65
SLIDE 65

Curvature of Surfaces

65

Mean curvature

  • everywhere minimal surface

H = 0 → H = κ1 + κ2 2

Green Void, Sydney Architects: Lava

slide-66
SLIDE 66

Curvature of Surfaces

66

Gaussian curvature

  • everywhere developable surface

→ K = 0 K = κ1 · κ2

Disney, Concert Hall, L.A. Architects: Gehry Partners Timber Fabric IBOIS, EPFL

surface that can be flattened to a plane without distortion (stretching or compression)

slide-67
SLIDE 67

Shape Operator

67

Derivative of Gauss map

  • second fundamental form
  • local coordinates
slide-68
SLIDE 68

Intrinsic Geometry

68

Properties of the surface that only depend on the first fundamental form

  • length
  • angles
  • Gaussian curvature (Theorema Egregium)

K = lim

r→0

6πr − 3C(r) πr3

remarkable theorem (Gauss) Gaussian curvature of a surface is invariant under local isometry

slide-69
SLIDE 69

Classification

69

Point on the surface is called

  • elliptic, if
  • hyperbolic, if
  • parabolic, if
  • umbilic, if κ1 = κ2

x K > 0 K < 0 K = 0

Gaussian curvature K

  • r isotropic
slide-70
SLIDE 70

Classification

70

Point on the surface is called

x

slide-71
SLIDE 71

Gauss-Bonnet Theorem

71

For any closed manifold surface with Euler characteristic

χ = 2 − 2g Z K = 2πχ Z K( ) = Z K( ) = Z K( ) = 4π

slide-72
SLIDE 72

Gauss-Bonnet Theorem

72

Sphere

κ1 = κ2 = 1/r K = κ1κ2 = 1/r2 Z K = 4πr2 · 1 r2 = 4π

when sphere is deformed, new positive and negative curvature cancel out

slide-73
SLIDE 73

Differential Operators

73

rf := ✓ ∂f ∂x1 , . . . , ∂f ∂xn ◆

Gradient

  • points in the direction of the steepest ascend
slide-74
SLIDE 74

Differential Operators

74

Divergence

  • volume density of outward flux of vector field
  • magnitude of source or sink at given point
  • Example: incompressible fluid
  • velocity field is divergence-free

divF = r · F := ∂F1 ∂x1 + . . . + ∂Fn ∂xn

slide-75
SLIDE 75

75

Divergence

divF = r · F := ∂F1 ∂x1 + . . . + ∂Fn ∂xn

high divergence low divergence

Differential Operators

slide-76
SLIDE 76

Laplace Operator

76

∆f = div∇f =

  • i

∂2f ∂x2

i

Laplace

  • perator

gradient

  • perator

2nd partial derivatives Cartesian coordinates divergence

  • perator

function in Euclidean space

slide-77
SLIDE 77

Laplace-Beltrami Operator

77

Extension of Laplace fo functions on manifolds

∆Sf = divS ∇Sf

Laplace- Beltrami gradient

  • perator

function on manifold divergence

  • perator

S

Laplace on the surface …of the surface

slide-78
SLIDE 78

Laplace-Beltrami Operator

78

Laplace- Beltrami gradient

  • perator

function on manifold divergence

  • perator

S ∆Sx = divS ∇Sx = −2Hn

mean curvature surface normal

slide-79
SLIDE 79

Literature

79

  • M. Do Carmo: Differential Geometry of Curves and Surfaces,

Prentice Hall, 1976

  • A. Pressley: Elementary Differential Geometry, Springer, 2010
  • G. Farin: Curves and Surfaces for CAGD, Morgan Kaufmann, 2001
  • W. Boehm, H. Prautzsch: Geometric Concepts for Geometric

Design, AK Peters 1994

  • H. Prautzsch, W. Boehm, M. Paluszny: Bézier and B-Spline

Techniques, Springer 2002

  • ddg.cs.columbia.edu
  • http://graphics.stanford.edu/courses/cs468-13-spring/schedule.html
slide-80
SLIDE 80

Next Time

80

Discrete Differential Geometry

slide-81
SLIDE 81

http://cs599.hao-li.com

Thanks!

81