Tutte’s Embedding Theorem Reproven and Extended · Tutte’s Embedding Theorem Reproven and...

42
Tutte’s Embedding Theorem Reproven and Extended Craig Gotsman Center for Graphics and Geometric Computing Technion – Israel Institute of Technology Joint with Steven Gortler and Dylan Thurston

Transcript of Tutte’s Embedding Theorem Reproven and Extended · Tutte’s Embedding Theorem Reproven and...

Page 1: Tutte’s Embedding Theorem Reproven and Extended · Tutte’s Embedding Theorem Reproven and Extended ... of the “Poincare-Hopf index theorem ... • Easy proof of Tutte’s theorem

Tutte’s Embedding Theorem Reproven and Extended

Craig Gotsman

Center for Graphics and Geometric ComputingTechnion – Israel Institute of Technology

Joint with Steven Gortler and Dylan Thurston

Page 2: Tutte’s Embedding Theorem Reproven and Extended · Tutte’s Embedding Theorem Reproven and Extended ... of the “Poincare-Hopf index theorem ... • Easy proof of Tutte’s theorem

Tutte’s Theorem

∀i, 0<αi<π

αi

planar 3-connected graph

2

( , )min i j

i j Ex x

−∑

straight-line planar embedding

Page 3: Tutte’s Embedding Theorem Reproven and Extended · Tutte’s Embedding Theorem Reproven and Extended ... of the “Poincare-Hopf index theorem ... • Easy proof of Tutte’s theorem

Bad Cases

Non-convex face Non-wheel vertex

Page 4: Tutte’s Embedding Theorem Reproven and Extended · Tutte’s Embedding Theorem Reproven and Extended ... of the “Poincare-Hopf index theorem ... • Easy proof of Tutte’s theorem

Good and Bad Embeddings

double-convex face

wheel vertex non-wheel vertex double-wheel vertex

convex face non-convex face

Page 5: Tutte’s Embedding Theorem Reproven and Extended · Tutte’s Embedding Theorem Reproven and Extended ... of the “Poincare-Hopf index theorem ... • Easy proof of Tutte’s theorem

Tutte’s Theorem (1963)

If G=<V,E> is a 3-connected planar graph

and

and the “boundary” of G is constrained to a convex polygon,

Then is a straight-line planarembedding – all faces are convex and all vertices are wheels.

niwiNj

ij ,..,11)(

==∑∈

⎪⎩

⎪⎨

⎧ ∈>=

otherwise

Ejiwij

),(

0

0xWx =

>< EyxV ,,,

yWy =

Page 6: Tutte’s Embedding Theorem Reproven and Extended · Tutte’s Embedding Theorem Reproven and Extended ... of the “Poincare-Hopf index theorem ... • Easy proof of Tutte’s theorem

Applications• Planar Graph Drawing

• Texture Mapping

• Remeshing

• Surface Reconstruction

• Morphing

• Compression

Page 7: Tutte’s Embedding Theorem Reproven and Extended · Tutte’s Embedding Theorem Reproven and Extended ... of the “Poincare-Hopf index theorem ... • Easy proof of Tutte’s theorem

Application - Texture Mapping

boundary

Page 8: Tutte’s Embedding Theorem Reproven and Extended · Tutte’s Embedding Theorem Reproven and Extended ... of the “Poincare-Hopf index theorem ... • Easy proof of Tutte’s theorem

good bad

Page 9: Tutte’s Embedding Theorem Reproven and Extended · Tutte’s Embedding Theorem Reproven and Extended ... of the “Poincare-Hopf index theorem ... • Easy proof of Tutte’s theorem

Remeshing

Page 10: Tutte’s Embedding Theorem Reproven and Extended · Tutte’s Embedding Theorem Reproven and Extended ... of the “Poincare-Hopf index theorem ... • Easy proof of Tutte’s theorem

Today

• Some simple results about discrete one-forms on manifold meshes

• Very simple proof of Tutte’s theorem– Essentially relies only on Euler’s theorem

• Generalize to case of non-convex boundary• Generalize to case of higher genus surfaces

Page 11: Tutte’s Embedding Theorem Reproven and Extended · Tutte’s Embedding Theorem Reproven and Extended ... of the “Poincare-Hopf index theorem ... • Easy proof of Tutte’s theorem

One-Forms on Meshes

Definition: A non-vanishing one-form [G,∆z] is an assignment of a non-zero real value ∆zuv to each half edge (u,v) of the mesh G=<V,E,F> such that ∆zuv = -∆zvu. ♦

5

5-

2-2

3.1

-3.1

-5.9

5.95

2

3.15.9

Page 12: Tutte’s Embedding Theorem Reproven and Extended · Tutte’s Embedding Theorem Reproven and Extended ... of the “Poincare-Hopf index theorem ... • Easy proof of Tutte’s theorem

Indices: Topological Sign Changes(needs faces for edge order)

ind(v) = (2-sc(v))/2

non-singularsc = 2

index = 0

saddlesc > 2

index < 0

sourcesc = 0

index = 1

non-singularsc = 2

index = 0

saddlesc > 2

index < 0

vortexsc = 0

index = 1

ind(f) = (2-sc(f))/2

Page 13: Tutte’s Embedding Theorem Reproven and Extended · Tutte’s Embedding Theorem Reproven and Extended ... of the “Poincare-Hopf index theorem ... • Easy proof of Tutte’s theorem

Index Theorem(after Banchoff ‘70, Lazarus and Verroust ‘99,

Benjamini and Lovasz ‘02)

Theorem: If G is a closed oriented manifold mesh of genus g, then any one-form [G,∆z] satisfies

Proof: Essentially by counting corners and applying Euler’s formula: V+F-E=2-2g. ♦

Corollary:g = 0 → must have at least two sources/sinks/vortices. g ≥ 2 → must have at least one saddle.

( ) ( ) 2 2v f

ind v ind f g∈ ∈

+ = −∑ ∑V F

Page 14: Tutte’s Embedding Theorem Reproven and Extended · Tutte’s Embedding Theorem Reproven and Extended ... of the “Poincare-Hopf index theorem ... • Easy proof of Tutte’s theorem

Index Theorem

• Natural discretizationof the “Poincare-Hopfindex theorem”

• Counts types of singularities in vector fields on surfaces (Hairy ball theorem)

Page 15: Tutte’s Embedding Theorem Reproven and Extended · Tutte’s Embedding Theorem Reproven and Extended ... of the “Poincare-Hopf index theorem ... • Easy proof of Tutte’s theorem

From Tutte Drawing to One-form

• Take straight line Tutte drawing (may have crossings)

• Pick arbitrary direction: Z• Project onto Z• Use Z differences as one-form

3

53

2

97

9

(0,0)

(3,-1)

(5,1)

(4,-4)

(1,-2)

Z=2Y-X

0

-3-5

-12

Page 16: Tutte’s Embedding Theorem Reproven and Extended · Tutte’s Embedding Theorem Reproven and Extended ... of the “Poincare-Hopf index theorem ... • Easy proof of Tutte’s theorem

Properties of One-form:Faces (incl. outer)

Closed: sum must be zero→ Cannot be vortex→ Index ≤ 0

(0,0)

(3,-1)

(5,1)

(4,-4)

(1,-2)

Z=2Y-X

0

-3-5

-12

3

53

2

97

9

Page 17: Tutte’s Embedding Theorem Reproven and Extended · Tutte’s Embedding Theorem Reproven and Extended ... of the “Poincare-Hopf index theorem ... • Easy proof of Tutte’s theorem

Properties of One-form:Interior Vertices

In convex hull of its neighbors→ Co-closed: (weighted) sum must be zero→ Cannot be source or sink→ Index ≤ 0

(0,0)

(3,-1)

(5,1)

(4,-4)

(1,-2)

Z=2Y-X

0

-3-5

-12

3

53

2

97

9

Page 18: Tutte’s Embedding Theorem Reproven and Extended · Tutte’s Embedding Theorem Reproven and Extended ... of the “Poincare-Hopf index theorem ... • Easy proof of Tutte’s theorem

Boundary is drawn as convex polygon“upper” vertex is source“lower” vertex is sink“side” vertices non source/sink

→ All vertices but two have index ≤ 0

Properties of One-form:Boundary Vertices

Page 19: Tutte’s Embedding Theorem Reproven and Extended · Tutte’s Embedding Theorem Reproven and Extended ... of the “Poincare-Hopf index theorem ... • Easy proof of Tutte’s theorem

Now Let’s Count Indices …

• All faces ≤ 0 • All vertices ≤ 0 except for 2

• Planar graph (incl. outer face) is topological sphere– 2-2g=2

• Index Theorem: sum of indices must be 2• → No negative indices are possible• → No saddles are possible

0, neg

+ 0, neg+ 2

= 2

Page 20: Tutte’s Embedding Theorem Reproven and Extended · Tutte’s Embedding Theorem Reproven and Extended ... of the “Poincare-Hopf index theorem ... • Easy proof of Tutte’s theorem

So Far …

In a one-form obtained as any projection of a Tutte drawing,

no faces or interior vertices are saddles.

Page 21: Tutte’s Embedding Theorem Reproven and Extended · Tutte’s Embedding Theorem Reproven and Extended ... of the “Poincare-Hopf index theorem ... • Easy proof of Tutte’s theorem

Properties of Tutte Drawing• Suppose that there was a flip at a vertex

• Could pick a projection to produce one-form with a saddle

Contradiction !!

non-wheel vertexY saddle

Page 22: Tutte’s Embedding Theorem Reproven and Extended · Tutte’s Embedding Theorem Reproven and Extended ... of the “Poincare-Hopf index theorem ... • Easy proof of Tutte’s theorem

Possible Neighborhoods

non-convex faceX and Y saddles

wheel vertexno saddles

non-wheel vertexY saddle

double-wheel vertexX and Y saddles

convex faceno saddles

non-convex faceY saddle

Page 23: Tutte’s Embedding Theorem Reproven and Extended · Tutte’s Embedding Theorem Reproven and Extended ... of the “Poincare-Hopf index theorem ... • Easy proof of Tutte’s theorem

Summarizing• Each face is convex• Each vertex is a wheel• Locally an embedding

Page 24: Tutte’s Embedding Theorem Reproven and Extended · Tutte’s Embedding Theorem Reproven and Extended ... of the “Poincare-Hopf index theorem ... • Easy proof of Tutte’s theorem

Local to Global

• Lemma: If each neighborhood is locally an embedding, and the boundary is simple then the drawing is globally an embedding

Page 25: Tutte’s Embedding Theorem Reproven and Extended · Tutte’s Embedding Theorem Reproven and Extended ... of the “Poincare-Hopf index theorem ... • Easy proof of Tutte’s theorem

Local to Global

• Lemma: If each neighborhood is locally an embedding, and the boundary is simple then the drawing is globally an embedding

• QED

Page 26: Tutte’s Embedding Theorem Reproven and Extended · Tutte’s Embedding Theorem Reproven and Extended ... of the “Poincare-Hopf index theorem ... • Easy proof of Tutte’s theorem

Non-Convex Boundary

Page 27: Tutte’s Embedding Theorem Reproven and Extended · Tutte’s Embedding Theorem Reproven and Extended ... of the “Poincare-Hopf index theorem ... • Easy proof of Tutte’s theorem

Non-Convex Boundary

• Convex boundary creates significant distortion

• “Free” boundary is better

3D

Page 28: Tutte’s Embedding Theorem Reproven and Extended · Tutte’s Embedding Theorem Reproven and Extended ... of the “Poincare-Hopf index theorem ... • Easy proof of Tutte’s theorem

Multiple Boundaries

better

(non convex boundary)

Page 29: Tutte’s Embedding Theorem Reproven and Extended · Tutte’s Embedding Theorem Reproven and Extended ... of the “Poincare-Hopf index theorem ... • Easy proof of Tutte’s theorem

Main Result

• If the drawing is not an embedding, then you can detect this at the boundary

• If the method forces the boundary to behave properly, then the drawing will be an embedding

Bad case: Reflex boundary vertex not in the convex hull of its four neighbors.

Page 30: Tutte’s Embedding Theorem Reproven and Extended · Tutte’s Embedding Theorem Reproven and Extended ... of the “Poincare-Hopf index theorem ... • Easy proof of Tutte’s theorem

Multiple Non-Convex BoundariesLemma: If1. G is an oriented 3-connected mesh of genus 0 having

multiple exterior faces. 2. The boundary of the unbounded exterior face is

mapped to the plane with positive edge lengths and turning number 2π.

3. The boundaries of the finite exterior faces are mapped to the plane with positive edge lengths and turning number -2π.

4. [G,x,y] is the straight line drawing of G where each interior vertex is positioned as a convex combination of its neighbors.

5. In [G,x,y] each reflex boundary vertex is in the convex hull of its neighbors.

Then for any projection [G,∆z], no vertex or interior face is a saddle.

Proof: More counting

Page 31: Tutte’s Embedding Theorem Reproven and Extended · Tutte’s Embedding Theorem Reproven and Extended ... of the “Poincare-Hopf index theorem ... • Easy proof of Tutte’s theorem

Like Before• Each face is convex• Each vertex is a wheel• Locally an embedding• In addition: If the boundary is simple, then

globally an embedding

Page 32: Tutte’s Embedding Theorem Reproven and Extended · Tutte’s Embedding Theorem Reproven and Extended ... of the “Poincare-Hopf index theorem ... • Easy proof of Tutte’s theorem

Theorem difficult to use because cannot tell apriori which vertices should be reflex

Page 33: Tutte’s Embedding Theorem Reproven and Extended · Tutte’s Embedding Theorem Reproven and Extended ... of the “Poincare-Hopf index theorem ... • Easy proof of Tutte’s theorem

Genus 1

Page 34: Tutte’s Embedding Theorem Reproven and Extended · Tutte’s Embedding Theorem Reproven and Extended ... of the “Poincare-Hopf index theorem ... • Easy proof of Tutte’s theorem

Harmonic One-form on Mesh (F,E,V)

• Each face is closed• Each vertex is co-closed (wrt fixed weights)

Theorem (Mercat ’01): Harmonic one-forms w.r.t. given positive weights on a mesh of a closed surface with genus g form a linear space of dimension 2g.

• Can be determined by computing the nullspace of a matrix

Page 35: Tutte’s Embedding Theorem Reproven and Extended · Tutte’s Embedding Theorem Reproven and Extended ... of the “Poincare-Hopf index theorem ... • Easy proof of Tutte’s theorem

g = 0

No nullspace→ No non-trivial harmonic one-forms

So all we can do is …. what we did:Remove one face to obtain diskUse Tutte embedding

Page 36: Tutte’s Embedding Theorem Reproven and Extended · Tutte’s Embedding Theorem Reproven and Extended ... of the “Poincare-Hopf index theorem ... • Easy proof of Tutte’s theorem

g = 1

• Harmonic → 2D nullspace, all indices ≤ 0• Index Theorem → sum of indices = 0• → All indices = 0• → No saddles

Page 37: Tutte’s Embedding Theorem Reproven and Extended · Tutte’s Embedding Theorem Reproven and Extended ... of the “Poincare-Hopf index theorem ... • Easy proof of Tutte’s theorem

Parameterization for g = 1 (Gu &Yau 03)

• Pick two linearly independent harmonic one-forms – for x,y coordinates

• Pick one starting vertex, map to origin• Integrate for x,y, coordinates

– Closed faces: path independent

1

12

2

2 3

5

y5

312

31

1

x (0,0)

(3,-1)

(5,1)

(4,-4)

(1,-2)

Page 38: Tutte’s Embedding Theorem Reproven and Extended · Tutte’s Embedding Theorem Reproven and Extended ... of the “Poincare-Hopf index theorem ... • Easy proof of Tutte’s theorem

g = 1Stop integration when vertex repeats

Page 39: Tutte’s Embedding Theorem Reproven and Extended · Tutte’s Embedding Theorem Reproven and Extended ... of the “Poincare-Hopf index theorem ... • Easy proof of Tutte’s theorem

g = 1

Theorem: Embedding is always valid

Proof:No saddles in either one form→ All vertices must be wheels and all faces must

be convex in the drawing(otherwise the projection would contain saddles)

Page 40: Tutte’s Embedding Theorem Reproven and Extended · Tutte’s Embedding Theorem Reproven and Extended ... of the “Poincare-Hopf index theorem ... • Easy proof of Tutte’s theorem

g > 1:More Complicated

• Sum of indices = 2-2g < 0• → Must be saddles in one-forms• → Must be “badness” in drawing• Usually “double covers”.

Page 41: Tutte’s Embedding Theorem Reproven and Extended · Tutte’s Embedding Theorem Reproven and Extended ... of the “Poincare-Hopf index theorem ... • Easy proof of Tutte’s theorem

Summary

• Discrete one-forms are useful mathematical tool• Easy proof of Tutte’s theorem• Extension to non-convex boundary• Extension to higher genus

Page 42: Tutte’s Embedding Theorem Reproven and Extended · Tutte’s Embedding Theorem Reproven and Extended ... of the “Poincare-Hopf index theorem ... • Easy proof of Tutte’s theorem

Thank You