2d/3d shape manipulation, 3d printing

58
Discrete Differential Geometry Planar Curves 2D/3D Shape Manipulation, 3D Printing March 13, 2013 Slides from Olga Sorkine, Eitan Grinspun

Upload: wenda

Post on 24-Feb-2016

55 views

Category:

Documents


0 download

DESCRIPTION

2D/3D Shape Manipulation, 3D Printing. Discrete Differential Geometry Planar Curves. Slides from Olga Sorkine , Eitan Grinspun. Differential Geometry – Motivation. Describe and analyze geometric characteristics of shapes e .g. how smooth?. Differential Geometry – Motivation. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: 2D/3D Shape Manipulation, 3D Printing

Discrete Differential GeometryPlanar Curves

2D/3D Shape Manipulation,3D Printing

March 13, 2013

Slides from Olga Sorkine, Eitan Grinspun

Page 2: 2D/3D Shape Manipulation, 3D Printing

Olga Sorkine-Hornung #

Differential Geometry – Motivation

● Describe and analyze geometric characteristics of shapes e.g. how smooth?

March 13, 2013 2

Page 3: 2D/3D Shape Manipulation, 3D Printing

Olga Sorkine-Hornung #

Differential Geometry – Motivation

● Describe and analyze geometric characteristics of shapes e.g. how smooth? how shapes deform

March 13, 2013 3

Page 4: 2D/3D Shape Manipulation, 3D Printing

Olga Sorkine-Hornung #

Differential Geometry Basics

● Geometry of manifolds● Things that can be discovered by

local observation: point + neighborhood

March 13, 2013 4

Page 5: 2D/3D Shape Manipulation, 3D Printing

Olga Sorkine-Hornung #

Differential Geometry Basics

● Geometry of manifolds● Things that can be discovered by

local observation: point + neighborhood

manifold point

March 13, 2013 5

Page 6: 2D/3D Shape Manipulation, 3D Printing

Olga Sorkine-Hornung #

Differential Geometry Basics

● Geometry of manifolds● Things that can be discovered by

local observation: point + neighborhood

manifold point

March 13, 2013 6

Page 7: 2D/3D Shape Manipulation, 3D Printing

Olga Sorkine-Hornung #

Differential Geometry Basics

● Geometry of manifolds● Things that can be discovered by

local observation: point + neighborhood

manifold pointcontinuous 1-1 mapping

March 13, 2013 7

Page 8: 2D/3D Shape Manipulation, 3D Printing

Olga Sorkine-Hornung #

Differential Geometry Basics

● Geometry of manifolds● Things that can be discovered by

local observation: point + neighborhood

manifold pointcontinuous 1-1 mapping

non-manifold point

March 13, 2013 8

Page 9: 2D/3D Shape Manipulation, 3D Printing

Olga Sorkine-Hornung #

Differential Geometry Basics

● Geometry of manifolds● Things that can be discovered by

local observation: point + neighborhood

manifold pointcontinuous 1-1 mapping

non-manifold pointx

March 13, 2013 9

Page 10: 2D/3D Shape Manipulation, 3D Printing

Olga Sorkine-Hornung #

Differential Geometry Basics

● Geometry of manifolds● Things that can be discovered by

local observation: point + neighborhood

March 13, 2013 10

Page 11: 2D/3D Shape Manipulation, 3D Printing

Olga Sorkine-Hornung #

Differential Geometry Basics

● Geometry of manifolds● Things that can be discovered by

local observation: point + neighborhood

continuous 1-1 mapping

March 13, 2013 11

Page 12: 2D/3D Shape Manipulation, 3D Printing

Olga Sorkine-Hornung #

Differential Geometry Basics

● Geometry of manifolds● Things that can be discovered by

local observation: point + neighborhood

continuous 1-1 mapping

u

v

If a sufficiently smooth mapping can be constructed, we can look at its first and second derivativesTangents, normals, curvaturesDistances, curve angles, topology

March 13, 2013 12

Page 13: 2D/3D Shape Manipulation, 3D Printing

Olga Sorkine-Hornung #

Planar Curves

March 13, 2013 13

Page 14: 2D/3D Shape Manipulation, 3D Printing

Olga Sorkine-Hornung #

Curves

● 2D:

● must be continuous

March 13, 2013 14

Page 15: 2D/3D Shape Manipulation, 3D Printing

Olga Sorkine-Hornung #

● Equal pace of the parameter along the curve

● len (p(t1), p(t2)) = |t1 – t2|

Arc Length Parameterization

March 13, 2013 15

Page 16: 2D/3D Shape Manipulation, 3D Printing

Olga Sorkine-Hornung #

Secant

• A line through two points on the curve.

March 13, 2013 16

Page 17: 2D/3D Shape Manipulation, 3D Printing

Olga Sorkine-Hornung #

Secant

● A line through two points on the curve.

March 13, 2013 17

Page 18: 2D/3D Shape Manipulation, 3D Printing

Olga Sorkine-Hornung #

Tangent

March 13, 2013 18

● The limiting secant as the two points come together.

Page 19: 2D/3D Shape Manipulation, 3D Printing

Olga Sorkine-Hornung #

Secant and Tangent – Parametric Form

● Secant: p(t) – p(s)● Tangent: p(t) = (x(t), y(t), …)T

● If t is arc-length:||p(t)|| = 1

March 13, 2013 19

Page 20: 2D/3D Shape Manipulation, 3D Printing

Olga Sorkine-Hornung #

Tangent, normal, radius of curvature

p

r

Osculating circle“best fitting circle”

March 13, 2013 20

Page 21: 2D/3D Shape Manipulation, 3D Printing

Olga Sorkine-Hornung #

Circle of Curvature

● Consider the circle passing through three points on the curve…

March 13, 2013 21

Page 22: 2D/3D Shape Manipulation, 3D Printing

Olga Sorkine-Hornung #

Circle of Curvature

• …the limiting circle as three points come together.

March 13, 2013 22

Page 23: 2D/3D Shape Manipulation, 3D Printing

Olga Sorkine-Hornung #

Radius of Curvature, r

March 13, 2013 23

Page 24: 2D/3D Shape Manipulation, 3D Printing

Olga Sorkine-Hornung #

Radius of Curvature, r = 1/

Curvature

March 13, 2013 24

Page 25: 2D/3D Shape Manipulation, 3D Printing

Olga Sorkine-Hornung #

Signed Curvature

+

March 13, 2013 25

• Clockwise vs counterclockwisetraversal along curve.

Page 26: 2D/3D Shape Manipulation, 3D Printing

#

Gauss map

● Point on curve maps to point on unit circle.

Page 27: 2D/3D Shape Manipulation, 3D Printing

Olga Sorkine-Hornung #

Curvature = change in normal direction

curve Gauss map curve Gauss map

● Absolute curvature (assuming arc length t)

● Parameter-free view: via the Gauss map

March 13, 2013 27

Page 28: 2D/3D Shape Manipulation, 3D Printing

Olga Sorkine-Hornung #

Curvature Normal

• Assume t is arc-length parameter)(ˆ)( tt np

[Kobbelt and Schröder]

p(t)

)(ˆ tn

p(t)

March 13, 2013 28

Page 29: 2D/3D Shape Manipulation, 3D Printing

Olga Sorkine-Hornung #

Curvature Normal – Examples

March 13, 2013 29

Page 30: 2D/3D Shape Manipulation, 3D Printing

Olga Sorkine-Hornung #

Turning Number, k

• Number of orbits in Gaussian image.

March 13, 2013 30

Page 31: 2D/3D Shape Manipulation, 3D Printing

Olga Sorkine-Hornung #

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

• Question: How to find curvatureof circle using this formula?

Turning Number Theorem

+2

–2

+4

0

March 13, 2013 31

Page 32: 2D/3D Shape Manipulation, 3D Printing

Olga Sorkine-Hornung #

Discrete Planar Curves

March 13, 2013 32

Page 33: 2D/3D Shape Manipulation, 3D Printing

Olga Sorkine-Hornung #

Discrete Planar Curves

● Piecewise linear curves● Not smooth at vertices● Can’t take derivatives

● Generalize notions fromthe smooth world forthe discrete case!

March 13, 2013 33

Page 34: 2D/3D Shape Manipulation, 3D Printing

Olga Sorkine-Hornung #

Tangents, Normals

● For any point on the edge, the tangent is simply the unit vector along the edge and the normal is the perpendicular vector

March 13, 2013 34

Page 35: 2D/3D Shape Manipulation, 3D Printing

Olga Sorkine-Hornung #

Tangents, Normals

● For vertices, we have many options

March 13, 2013 35

Page 36: 2D/3D Shape Manipulation, 3D Printing

Olga Sorkine-Hornung #

● Can choose to average the adjacent edge normals

Tangents, Normals

March 13, 2013 36

Page 37: 2D/3D Shape Manipulation, 3D Printing

Olga Sorkine-Hornung #

Tangents, Normals

● Weight by edge lengths

March 13, 2013 37

Page 38: 2D/3D Shape Manipulation, 3D Printing

Olga Sorkine-Hornung #

Inscribed Polygon, p

• Connection between discrete and smooth

• Finite number of verticeseach lying on the curve,connected by straight edges.

March 13, 2013 38

Page 39: 2D/3D Shape Manipulation, 3D Printing

Olga Sorkine-Hornung #

p1

p2

p3

p4

The Length of a Discrete Curve

• Sum of edge lengths

March 13, 2013 39

Page 40: 2D/3D Shape Manipulation, 3D Printing

Olga Sorkine-Hornung #

The Length of a Continuous Curve

• Length of longest of all inscribed polygons.

March 13, 2013 40sup = “supremum”. Equivalent to maximum if maximum exists.

Page 41: 2D/3D Shape Manipulation, 3D Printing

Olga Sorkine-Hornung #

• …or take limit over a refinement sequence

h = max edge length

The Length of a Continuous Curve

March 13, 2013 41

Page 42: 2D/3D Shape Manipulation, 3D Printing

Olga Sorkine-Hornung #

Curvature of a Discrete Curve

● Curvature is the change in normal direction as we travel along the curve

no change along each edge – curvature is zero along edges

March 13, 2013 42

Page 43: 2D/3D Shape Manipulation, 3D Printing

Olga Sorkine-Hornung #

Curvature of a Discrete Curve

● Curvature is the change in normal direction as we travel along the curve

normal changes at vertices – record the turning angle!

March 13, 2013 43

Page 44: 2D/3D Shape Manipulation, 3D Printing

Olga Sorkine-Hornung #

Curvature of a Discrete Curve

● Curvature is the change in normal direction as we travel along the curve

normal changes at vertices – record the turning angle!

March 13, 2013 44

Page 45: 2D/3D Shape Manipulation, 3D Printing

Olga Sorkine-Hornung #

● Curvature is the change in normal direction as we travel along the curve

same as the turning anglebetween the edges

Curvature of a Discrete Curve

March 13, 2013 45

Page 46: 2D/3D Shape Manipulation, 3D Printing

Olga Sorkine-Hornung #

● Zero along the edges● Turning angle at the vertices

= the change in normal direction

1, 2 > 0, 3 < 0

1 2

3

Curvature of a Discrete Curve

March 13, 2013 46

Page 47: 2D/3D Shape Manipulation, 3D Printing

Olga Sorkine-Hornung #

Total Signed Curvature

• Sum of turning angles 1 2

3

March 13, 2013 47

Page 48: 2D/3D Shape Manipulation, 3D Printing

#

Discrete Gauss Map

● Edges map to points, vertices map to arcs.

Page 49: 2D/3D Shape Manipulation, 3D Printing

#

Discrete Gauss Map

● Turning number well-defined for discrete curves.

Page 50: 2D/3D Shape Manipulation, 3D Printing

Olga Sorkine-Hornung #

Discrete Turning Number Theorem

● For a closed curve, the total signed curvature is an integer multiple of 2. proof: sum of exterior angles

March 13, 2013 50

Page 51: 2D/3D Shape Manipulation, 3D Printing

Olga Sorkine-Hornung #

Discrete Curvature – Integrated Quantity!

● Integrated over a local area associated with a vertex

March 13, 2013

1 2

51

Page 52: 2D/3D Shape Manipulation, 3D Printing

Olga Sorkine-Hornung #

Discrete Curvature – Integrated Quantity!

● Integrated over a local area associated with a vertex

March 13, 2013

1 2A1

52

Page 53: 2D/3D Shape Manipulation, 3D Printing

Olga Sorkine-Hornung #

Discrete Curvature – Integrated Quantity!

● Integrated over a local area associated with a vertex

March 13, 2013

1 2A1

A2

53

Page 54: 2D/3D Shape Manipulation, 3D Printing

Olga Sorkine-Hornung #

Discrete Curvature – Integrated Quantity!

● Integrated over a local area associated with a vertex

March 13, 2013

1 2A1

A2

The vertex areas Ai form a covering of the curve.They are pairwise disjoint (except endpoints).

54

Page 55: 2D/3D Shape Manipulation, 3D Printing

Olga Sorkine-Hornung #

Structure Preservation

• Arbitrary discrete curve– total signed curvature obeys

discrete turning number theorem– even coarse mesh (curve)– which continuous theorems to preserve?

• that depends on the application…

discrete analogueof continuous theorem

March 13, 2013 55

Page 56: 2D/3D Shape Manipulation, 3D Printing

Olga Sorkine-Hornung #

Convergence

• Consider refinement sequence– length of inscribed polygon approaches

length of smooth curve – in general, discrete measure approaches

continuous analogue– which refinement sequence?

• depends on discrete operator• pathological sequences may exist

– in what sense does the operator converge? (point-wise, L2; linear, quadratic)

March 13, 2013 56

Page 57: 2D/3D Shape Manipulation, 3D Printing

Olga Sorkine-Hornung #

Recap

ConvergenceStructure-preservation

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

For an arbitrary (even coarse) discrete curve, the discrete measure of curvature obeys the discrete turning number theorem.

March 13, 2013 57

Page 58: 2D/3D Shape Manipulation, 3D Printing

Thank You

March 13, 2013