CSE291-C00 Curves: Continuous and Discrete

74
CSE291-C00 Curves: Continuous and Discrete Instructor: Hao Su Credit: Justin Solomon

Transcript of CSE291-C00 Curves: Continuous and Discrete

Page 1: CSE291-C00 Curves: Continuous and Discrete

CSE291-C00

Curves: Continuous and Discrete

Instructor: Hao Su

Credit: Justin Solomon

Page 2: CSE291-C00 Curves: Continuous and Discrete

Defining “Curve”

A function?

Page 3: CSE291-C00 Curves: Continuous and Discrete

Subtlety

Not a curve

Page 4: CSE291-C00 Curves: Continuous and Discrete

Graphs of Smooth Functions

http://en.wikipedia.org/wiki/Singular_point_of_a_curve

“Cusp”

Page 5: CSE291-C00 Curves: Continuous and Discrete

Graphs of Smooth Functions

http://en.wikipedia.org/wiki/Singular_point_of_a_curve

“Cusp”

How to ensure the smoothness of a curve?

Page 6: CSE291-C00 Curves: Continuous and Discrete

Geometry of a Curve

A curve is a

set of pointswith certain properties.

It is not a function.

Page 7: CSE291-C00 Curves: Continuous and Discrete

Geometric Definition

Set of points that locally looks like a line.

Page 8: CSE291-C00 Curves: Continuous and Discrete

Differential Geometry Definition

Page 9: CSE291-C00 Curves: Continuous and Discrete

Parameterized Curve

Now this is OK!

Page 10: CSE291-C00 Curves: Continuous and Discrete

• Trace of parameterized curve

• Component functions

Some Vocabulary

Page 11: CSE291-C00 Curves: Continuous and Discrete

Change of Parameter

Geometric measurements should be

invariantto changes of parameter.

Page 12: CSE291-C00 Curves: Continuous and Discrete

Dependence of Velocity

On the board:Effect on velocity and acceleration.

Page 13: CSE291-C00 Curves: Continuous and Discrete

Arc Length

Page 14: CSE291-C00 Curves: Continuous and Discrete

Parameterization by Arc Length

Constant-speed parameterization

http://www.planetclegg.com/projects/WarpingTextToSplines.html

γ̄(s) = γ(t(s))

Page 15: CSE291-C00 Curves: Continuous and Discrete

Moving Frame in 2D

https://en.wikipedia.org/wiki/Frenet%E2%80%93Serret_formulas

Page 16: CSE291-C00 Curves: Continuous and Discrete

Philosophical Point

Differential geometry “should” be

coordinate-invariant.

Referring to x and y is a hack!(but sometimes convenient…)

Page 17: CSE291-C00 Curves: Continuous and Discrete

How do you characterize shape

without coordinates?

Page 18: CSE291-C00 Curves: Continuous and Discrete

Turtles All The Way Down

Use coordinates from the curve to express its shape!

On the board:

https://en.wikipedia.org/wiki/Frenet%E2%80%93Serret_formulas

Page 19: CSE291-C00 Curves: Continuous and Discrete

Radius of Curvature

https://www.quora.com/What-is-the-base-difference-between-radius-of-curvature-and-radius-of-gyration

Page 20: CSE291-C00 Curves: Continuous and Discrete

Fundamental theorem of the local theory of plane curves:

k(s) characterizes a planar curve up to rigid motion.

Page 21: CSE291-C00 Curves: Continuous and Discrete

Fundamental theorem of the local theory of plane curves:

k(s) characterizes a planar curve up to rigid motion.

Statement shorter than the name!

Page 22: CSE291-C00 Curves: Continuous and Discrete

• Binormal: • Curvature: In-plane motion• Torsion: Out-of-plane motion

Frenet Frame: Curves in

Page 23: CSE291-C00 Curves: Continuous and Discrete

Fundamental theorem of the local theory of space curves:

Curvature and torsion characterize a 3D curve up to

rigid motion.

Page 24: CSE291-C00 Curves: Continuous and Discrete

Aside: Generalized Frenet Frame

Gram-Schmidt on first n derivativesC. Jordan, 1874

Suspicion: Application to time series analysis? ML?

Page 25: CSE291-C00 Curves: Continuous and Discrete

What do these calculations look like in

software?

Page 26: CSE291-C00 Curves: Continuous and Discrete

Old-School Approach

Piecewise smooth approximations

Page 27: CSE291-C00 Curves: Continuous and Discrete

Question

What is the arc length of a cubic Bézier curve?

Page 28: CSE291-C00 Curves: Continuous and Discrete

Question

What is the arc length of a cubic Bézier curve?

Not known in closed form.

Page 29: CSE291-C00 Curves: Continuous and Discrete

Sad fact:Closed-form

expressions rarely exist. When they do exist, they

usually are messy.

Page 30: CSE291-C00 Curves: Continuous and Discrete

Only Approximations Anyway

Page 31: CSE291-C00 Curves: Continuous and Discrete

Equally Reasonable Approximation

Piecewise linear

Page 32: CSE291-C00 Curves: Continuous and Discrete

Big Problem

Boring differential structure

Page 33: CSE291-C00 Curves: Continuous and Discrete

Finite Difference Approach

THEOREM: As , [insert statement].

Page 34: CSE291-C00 Curves: Continuous and Discrete

Reality Check

THEOREM: As , [insert statement].

Page 35: CSE291-C00 Curves: Continuous and Discrete

Two Key Considerations

• Convergence to continuous theory

• Discrete behavior

Page 36: CSE291-C00 Curves: Continuous and Discrete

Goal

Examine discrete theories of differentiable curves.

Page 37: CSE291-C00 Curves: Continuous and Discrete

Goal

Examine discrete theories of differentiable curves.

Page 38: CSE291-C00 Curves: Continuous and Discrete

Gauss Map

http://mesh.brown.edu/3DPGP-2007/pdfs/sg06-course01.pdf

Normal map from curve to S1

Page 39: CSE291-C00 Curves: Continuous and Discrete

Signed Curvature on Plane Curves

Page 40: CSE291-C00 Curves: Continuous and Discrete

Turning Numbers

http://mesh.brown.edu/3DPGP-2007/pdfs/sg06-course01.pdf

Page 41: CSE291-C00 Curves: Continuous and Discrete

Recovering Theta

Page 42: CSE291-C00 Curves: Continuous and Discrete

Turning Number Theorem

A “global” theorem!

Page 43: CSE291-C00 Curves: Continuous and Discrete

Discrete Gauss Map

http://mesh.brown.edu/3DPGP-2007/pdfs/sg06-course01.pdf

Page 44: CSE291-C00 Curves: Continuous and Discrete

Discrete Gauss Map

http://mesh.brown.edu/3DPGP-2007/pdfs/sg06-course01.pdf

Edges become points

Page 45: CSE291-C00 Curves: Continuous and Discrete

Discrete Gauss Map

http://mesh.brown.edu/3DPGP-2007/pdfs/sg06-course01.pdf

Vertices become arcs

Page 46: CSE291-C00 Curves: Continuous and Discrete

Key Observation

Page 47: CSE291-C00 Curves: Continuous and Discrete

What’s Going On?

Total change in curvature

( )

Page 48: CSE291-C00 Curves: Continuous and Discrete

What’s Going On?

Total change in curvature

( )

Page 49: CSE291-C00 Curves: Continuous and Discrete

What’s Going On?

Total change in curvature

( )

Page 50: CSE291-C00 Curves: Continuous and Discrete

Interesting Distinction

Same integrated curvature

Page 51: CSE291-C00 Curves: Continuous and Discrete

Interesting Distinction

Same integrated curvature

Page 52: CSE291-C00 Curves: Continuous and Discrete

What’s Going On?

Total change in curvature

( )

Integrated quantity

Dual cell

Page 53: CSE291-C00 Curves: Continuous and Discrete

Discrete Turning Angle Theorem

)(

)(

)(

)()(

)(

)( Preserved structure!

Page 54: CSE291-C00 Curves: Continuous and Discrete

Alternative Definition

Homework

decreases length the

fastest.

Page 55: CSE291-C00 Curves: Continuous and Discrete

Discrete Case

Homework

Page 56: CSE291-C00 Curves: Continuous and Discrete

For Small

Same behavior in the limithttp://en.wikipedia.org/wiki/Taylor_series

Page 57: CSE291-C00 Curves: Continuous and Discrete

Remaining Question

Does discrete curvature converge in limit?

Yes!

Page 58: CSE291-C00 Curves: Continuous and Discrete

Remaining Question

Does discrete curvature converge in limit?

Yes!

Questions:• Type of convergence?• Sampling?• Class of curves?

Page 59: CSE291-C00 Curves: Continuous and Discrete

Discrete Differential Geometry

• Different discrete behavior

• Same convergence

Page 60: CSE291-C00 Curves: Continuous and Discrete

Next

Curves in 3Dhttp://www.grasshopper3d.com/forum/topics/offseting-3d-curves-component

Page 61: CSE291-C00 Curves: Continuous and Discrete

Frenet Frame

http://upload.wikimedia.org/wikipedia/commons/6/6f/Frenet.png

Page 62: CSE291-C00 Curves: Continuous and Discrete

Application

Structure Determination of Membrane Proteins Using Discrete Frenet Frameand Solid State NMR Restraints

Achuthan and QuineDiscrete Mathematics and its Applications, ed. M. Sethumadhavan (2006)

NMR scanner Kinked alpha helix

Page 63: CSE291-C00 Curves: Continuous and Discrete

Potential Discretization

Discrete Frenet frame

Discrete frame introduced in:The resultant electric moment of complex molecules

Eyring, Physical Review, 39(4):746—748, 1932.

Page 64: CSE291-C00 Curves: Continuous and Discrete

Frenet Frame: Issue

?

http://upload.wikimedia.org/wikipedia/commons/6/6f/Frenet.png

Page 65: CSE291-C00 Curves: Continuous and Discrete

Segments Not Always Enough

http://www.cs.columbia.edu/cg/rods/

Discrete Elastic RodsBergou, Wardetzky, Robinson, Audoly, and Grinspun

SIGGRAPH 2008

Page 66: CSE291-C00 Curves: Continuous and Discrete

Simulation Goal

http://www.cs.columbia.edu/cg/rods/

Page 67: CSE291-C00 Curves: Continuous and Discrete

Adapted Framed Curve

Normal part encodes twisthttp://www.cs.columbia.edu/cg/rods/

Material frame

Page 68: CSE291-C00 Curves: Continuous and Discrete

Bending Energy

Punish turning the steering wheel

Page 69: CSE291-C00 Curves: Continuous and Discrete

Bending Energy

Punish turning the steering wheel

Page 70: CSE291-C00 Curves: Continuous and Discrete

Twisting Energy

Punish non-tangent change in material frame

Page 71: CSE291-C00 Curves: Continuous and Discrete

Twisting Energy

Punish non-tangent change in material frame

Swapping and does not affect !

Page 72: CSE291-C00 Curves: Continuous and Discrete

Which Basis to Use

Page 73: CSE291-C00 Curves: Continuous and Discrete

Curve-Angle Representation

Degrees of freedom for elastic energy:• Shape of curve• Twist angle

Page 74: CSE291-C00 Curves: Continuous and Discrete

Next

Surfaceshttp://graphics.stanford.edu/data/3Dscanrep/stanford-bunny-cebal-ssh.jpg

http://www.stat.washington.edu/wxs/images/BUNMID.gif