Anisotropic Voronoi Diagrams and Guaranteed−Quality ...jrs/papers/anisotalk.pdf · Anisotropic...

47
Computer Science Division University of California at Berkeley Berkeley, California Anisotropic Mesh Generation Guaranteed-Quality [email protected] [email protected] François Labelle Jonathan Richard Shewchuk Anisotropic Voronoi Diagrams and

Transcript of Anisotropic Voronoi Diagrams and Guaranteed−Quality ...jrs/papers/anisotalk.pdf · Anisotropic...

Page 1: Anisotropic Voronoi Diagrams and Guaranteed−Quality ...jrs/papers/anisotalk.pdf · Anisotropic Voronoi diagrams offer an elegant and fast way to define anisotropic ‘‘Delaunay’’

Computer Science DivisionUniversity of California at Berkeley

Berkeley, California

Anisotropic Mesh GenerationGuaranteed−Quality

[email protected]@cs.berkeley.edu

François LabelleJonathan Richard Shewchuk

Anisotropic Voronoi Diagrams and

Page 2: Anisotropic Voronoi Diagrams and Guaranteed−Quality ...jrs/papers/anisotalk.pdf · Anisotropic Voronoi diagrams offer an elegant and fast way to define anisotropic ‘‘Delaunay’’

I. Anisotropic Meshes

Page 3: Anisotropic Voronoi Diagrams and Guaranteed−Quality ...jrs/papers/anisotalk.pdf · Anisotropic Voronoi diagrams offer an elegant and fast way to define anisotropic ‘‘Delaunay’’

What Are Anisotropic Meshes?Meshes with long, skinny triangles (in the right places).

Why Are They Important?

interpolation of

Used in finite elementmethods to resolveboundary layers andshocks.

with fewer triangles.multivariate functions

Often provide better

Source: ‘‘Grid Generation by the DelaunayTriangulation,’’ Nigel P. Weatherill, 1994.

Page 4: Anisotropic Voronoi Diagrams and Guaranteed−Quality ...jrs/papers/anisotalk.pdf · Anisotropic Voronoi diagrams offer an elegant and fast way to define anisotropic ‘‘Delaunay’’

Triangle shape is critical for

triangulations in interpolation.finite element meshes in physical modeling;surface triangulations in graphics;

Page 5: Anisotropic Voronoi Diagrams and Guaranteed−Quality ...jrs/papers/anisotalk.pdf · Anisotropic Voronoi diagrams offer an elegant and fast way to define anisotropic ‘‘Delaunay’’

Interpolation of Functions withAnisotropic Curvature

f

g

= Hessian ofH Let = with symmetric pos−def.Hf.2

You can judge the quality of a triangleif

t by checkingis ‘‘round.’’

F F

F

Ft

Page 6: Anisotropic Voronoi Diagrams and Guaranteed−Quality ...jrs/papers/anisotalk.pdf · Anisotropic Voronoi diagrams offer an elegant and fast way to define anisotropic ‘‘Delaunay’’

M p Fp Fp

Fp Fq

Metric tensorDeformation tensor

: distances & angles measured by: maps physical to rectified space.

p.

=p

T

FpFq−1

Fp Fq−1

Physical space.

Every point wants to be in a ‘‘nice’’ triangle in rectified space.

Distance MeasurespM

F

pq

p q

Page 7: Anisotropic Voronoi Diagrams and Guaranteed−Quality ...jrs/papers/anisotalk.pdf · Anisotropic Voronoi diagrams offer an elegant and fast way to define anisotropic ‘‘Delaunay’’

M p Fp Fp

Fp Fq

Metric tensorDeformation tensor

: distances & angles measured by: maps physical to rectified space.

p.

=p

T

FpFq−1

Fp Fq−1

Physical space.

Every point wants to be in a ‘‘nice’’ triangle in rectified space.

Distance MeasurespM

F

p

pq

q

Page 8: Anisotropic Voronoi Diagrams and Guaranteed−Quality ...jrs/papers/anisotalk.pdf · Anisotropic Voronoi diagrams offer an elegant and fast way to define anisotropic ‘‘Delaunay’’

M,Given polygonal domain and metric tensor field

The Anisotropic Mesh Generation Problem

generate anisotropic mesh.

Page 9: Anisotropic Voronoi Diagrams and Guaranteed−Quality ...jrs/papers/anisotalk.pdf · Anisotropic Voronoi diagrams offer an elegant and fast way to define anisotropic ‘‘Delaunay’’

Quadtree−based methods canbe adapted to horizontal andvertical stretching, but not todiagonal stretching.

Delaunay triangulations losetheir global optimality propertieswhen adapted to anisotropy. No‘‘empty circumellipse’’ property.

Common approaches to guaranteed−quality meshgeneration do not adapt well to anisotropy.

A Hard Problem (Especially in Theory)

Page 10: Anisotropic Voronoi Diagrams and Guaranteed−Quality ...jrs/papers/anisotalk.pdf · Anisotropic Voronoi diagrams offer an elegant and fast way to define anisotropic ‘‘Delaunay’’

Bossen−Heckbert [1996]Shimada−Yamada−Itoh [1997]

George−Borouchaki [1998]Li−Teng−Üngör [1999]

Generating Anisotropic MeshesHeuristic Algorithms for

Page 11: Anisotropic Voronoi Diagrams and Guaranteed−Quality ...jrs/papers/anisotalk.pdf · Anisotropic Voronoi diagrams offer an elegant and fast way to define anisotropic ‘‘Delaunay’’

We tried to invent an ‘‘anisotropic Delaunaytriangulation’’ that is always well defined.We couldn’t do it. So...

Our meshing algorithm refines a special,anisotropic kind of Voronoi diagram.

No triangulation until the very end.

Our Solution

Page 12: Anisotropic Voronoi Diagrams and Guaranteed−Quality ...jrs/papers/anisotalk.pdf · Anisotropic Voronoi diagrams offer an elegant and fast way to define anisotropic ‘‘Delaunay’’

II. Anisotropic Voronoi Diagrams

Page 13: Anisotropic Voronoi Diagrams and Guaranteed−Quality ...jrs/papers/anisotalk.pdf · Anisotropic Voronoi diagrams offer an elegant and fast way to define anisotropic ‘‘Delaunay’’

<−

Ed Ed

than to any other site inv V.

Given a set

Mathematically:

cells. The cell

Voronoi Diagram: Definition

p Ev ) = { in :Vor( d dwdv(p) for every(p){distance fromas measured by

v

V of sites in , decompose

w in V .}

vv to p

Vor(vinto

) is the set of points ‘‘closer’’to

Page 14: Anisotropic Voronoi Diagrams and Guaranteed−Quality ...jrs/papers/anisotalk.pdf · Anisotropic Voronoi diagrams offer an elegant and fast way to define anisotropic ‘‘Delaunay’’

1. Standard Voronoi diagram

dv(p) = ||p − v||2

Distance Function Examples

Page 15: Anisotropic Voronoi Diagrams and Guaranteed−Quality ...jrs/papers/anisotalk.pdf · Anisotropic Voronoi diagrams offer an elegant and fast way to define anisotropic ‘‘Delaunay’’

dv(p) =

2. Power diagram

(||p − v||22 − c v)1/2

Distance Function Examples

Page 16: Anisotropic Voronoi Diagrams and Guaranteed−Quality ...jrs/papers/anisotalk.pdf · Anisotropic Voronoi diagrams offer an elegant and fast way to define anisotropic ‘‘Delaunay’’

dv(p) = ||p − v||2c v

3. Multiplicatively weighted Voronoi diagram

Distance Function Examples

Page 17: Anisotropic Voronoi Diagrams and Guaranteed−Quality ...jrs/papers/anisotalk.pdf · Anisotropic Voronoi diagrams offer an elegant and fast way to define anisotropic ‘‘Delaunay’’

dv(p) =

4. Anisotropic Voronoi diagram

[ T Mv ]1/2( )( )p − v p − v

Distance Function Examples

Page 18: Anisotropic Voronoi Diagrams and Guaranteed−Quality ...jrs/papers/anisotalk.pdf · Anisotropic Voronoi diagrams offer an elegant and fast way to define anisotropic ‘‘Delaunay’’

Leibon & Letscher [2000] define Voronoi/Delaunayon Riemannian manifolds.

Bounded curvature + densely sampled siteswell−defined Delaunay triangulation.

Geodesics too hard to compute in practice.

Delaunay, but can’t prove anything.heuristic approximation to RiemannianGeorge & Borouchaki [1998] suggest fast

Distance Function Examples

5. Riemannian Voronoi diagram

dv(p) = shortest geodesic path between p.andv

Page 19: Anisotropic Voronoi Diagrams and Guaranteed−Quality ...jrs/papers/anisotalk.pdf · Anisotropic Voronoi diagrams offer an elegant and fast way to define anisotropic ‘‘Delaunay’’

Orphans

Island

Voronoi arc Voronoi vertex

Anisotropic Voronoi Diagram

Page 20: Anisotropic Voronoi Diagrams and Guaranteed−Quality ...jrs/papers/anisotalk.pdf · Anisotropic Voronoi diagrams offer an elegant and fast way to define anisotropic ‘‘Delaunay’’

The dual of thestandard Voronoidiagram is theDelaunaytriangulation.

The dual of theanisotropicVoronoi diagramis not, in general,a triangulation.

We must enforce some extra conditions.

Duality

Page 21: Anisotropic Voronoi Diagrams and Guaranteed−Quality ...jrs/papers/anisotalk.pdf · Anisotropic Voronoi diagrams offer an elegant and fast way to define anisotropic ‘‘Delaunay’’

v

w w

vRight angle from

Right angle from

’s perspective

’s perspective

Two Sites Define a Wedge

Page 22: Anisotropic Voronoi Diagrams and Guaranteed−Quality ...jrs/papers/anisotalk.pdf · Anisotropic Voronoi diagrams offer an elegant and fast way to define anisotropic ‘‘Delaunay’’

Voronoi arc iswedged

wedgedall 3 wedges.

if it’s in

sites that define it.the wedge of the

if it’s in

Voronoi vertex is

Page 23: Anisotropic Voronoi Diagrams and Guaranteed−Quality ...jrs/papers/anisotalk.pdf · Anisotropic Voronoi diagrams offer an elegant and fast way to define anisotropic ‘‘Delaunay’’

Visibility Lemma

Inside wedge, each site sees its whole Voronoi cell.

Page 24: Anisotropic Voronoi Diagrams and Guaranteed−Quality ...jrs/papers/anisotalk.pdf · Anisotropic Voronoi diagrams offer an elegant and fast way to define anisotropic ‘‘Delaunay’’

Visibility Lemma

Inside wedge, each site sees its whole Voronoi cell.

Page 25: Anisotropic Voronoi Diagrams and Guaranteed−Quality ...jrs/papers/anisotalk.pdf · Anisotropic Voronoi diagrams offer an elegant and fast way to define anisotropic ‘‘Delaunay’’

If every Voronoi arc of Vor(v ) is wedged, then

(This generalizes to higher dimensions.)

Vor(v

Visibility Theorem

v

) is star−shaped & visible from v.

Page 26: Anisotropic Voronoi Diagrams and Guaranteed−Quality ...jrs/papers/anisotalk.pdf · Anisotropic Voronoi diagrams offer an elegant and fast way to define anisotropic ‘‘Delaunay’’

Triangle Orientation Lemma

(Does not generalize above two dimensions.)

has positive orientation.If a Voronoi vertex is wedged, its dual triangle

Page 27: Anisotropic Voronoi Diagrams and Guaranteed−Quality ...jrs/papers/anisotalk.pdf · Anisotropic Voronoi diagrams offer an elegant and fast way to define anisotropic ‘‘Delaunay’’

Dual Triangulation Theorem

dualizes to an

If arcs & vertices are wedged(& some conditions hold at the boundary), the

If all arcs & vertices are wedged, Voronoi diagramanisotropic Delaunay triangulation.

dual is a triangulation of the domain.

inside a domain

Page 28: Anisotropic Voronoi Diagrams and Guaranteed−Quality ...jrs/papers/anisotalk.pdf · Anisotropic Voronoi diagrams offer an elegant and fast way to define anisotropic ‘‘Delaunay’’

III. Anisotropic Mesh Generationby Voronoi Refinement

Page 29: Anisotropic Voronoi Diagrams and Guaranteed−Quality ...jrs/papers/anisotalk.pdf · Anisotropic Voronoi diagrams offer an elegant and fast way to define anisotropic ‘‘Delaunay’’

Isotropic Mesh Generation by Delaunay Refinement(William Frey, L. Paul Chew, Jim Ruppert)

Always maintain Delaunay triangulation.Eliminate any triangle with small angle (< 20°) byinserting vertex at center of circumscribing circle.

This solves the isotropic case,

No smaller edge is introduced

M= identity.

guaranteed to terminate.

v v

t

Page 30: Anisotropic Voronoi Diagrams and Guaranteed−Quality ...jrs/papers/anisotalk.pdf · Anisotropic Voronoi diagrams offer an elegant and fast way to define anisotropic ‘‘Delaunay’’

Easy Case: M = constant

Page 31: Anisotropic Voronoi Diagrams and Guaranteed−Quality ...jrs/papers/anisotalk.pdf · Anisotropic Voronoi diagrams offer an elegant and fast way to define anisotropic ‘‘Delaunay’’

1. Apply F to the domain

2. Isotropic meshing

3. Apply F −1

Easy Case: M = constant

Page 32: Anisotropic Voronoi Diagrams and Guaranteed−Quality ...jrs/papers/anisotalk.pdf · Anisotropic Voronoi diagrams offer an elegant and fast way to define anisotropic ‘‘Delaunay’’

Remarks on Anisotropy

About our AlgorithmFirst algorithm formeshing.Reduces to standard Delaunay refinement whenM is constant.We can quantify how much refinement is causedby variation in

Large distortion isn’ta problem.

Rapid variation inthe metric tensor fieldis a problem.

guaranteed−quality anisotropic

M.

Page 33: Anisotropic Voronoi Diagrams and Guaranteed−Quality ...jrs/papers/anisotalk.pdf · Anisotropic Voronoi diagrams offer an elegant and fast way to define anisotropic ‘‘Delaunay’’

Voronoi Refinement Algorithm

Begin with the anisotropic Voronoi diagram ofthe vertices of the domain.

Page 34: Anisotropic Voronoi Diagrams and Guaranteed−Quality ...jrs/papers/anisotalk.pdf · Anisotropic Voronoi diagrams offer an elegant and fast way to define anisotropic ‘‘Delaunay’’

Voronoi Refinement Algorithm

Islands

Insert new sites on unwedged portions of arcs.

Page 35: Anisotropic Voronoi Diagrams and Guaranteed−Quality ...jrs/papers/anisotalk.pdf · Anisotropic Voronoi diagrams offer an elegant and fast way to define anisotropic ‘‘Delaunay’’

Voronoi Refinement Algorithm

Orphan

Insert new sites on unwedged portions of arcs.

Page 36: Anisotropic Voronoi Diagrams and Guaranteed−Quality ...jrs/papers/anisotalk.pdf · Anisotropic Voronoi diagrams offer an elegant and fast way to define anisotropic ‘‘Delaunay’’

Voronoi Refinement Algorithm

Insert new sites at Voronoi verticesthat dualize to inverted triangles.

Page 37: Anisotropic Voronoi Diagrams and Guaranteed−Quality ...jrs/papers/anisotalk.pdf · Anisotropic Voronoi diagrams offer an elegant and fast way to define anisotropic ‘‘Delaunay’’

Voronoi Refinement Algorithm

Insert new sites at Voronoi verticesthat dualize to poor−quality triangles.

Page 38: Anisotropic Voronoi Diagrams and Guaranteed−Quality ...jrs/papers/anisotalk.pdf · Anisotropic Voronoi diagrams offer an elegant and fast way to define anisotropic ‘‘Delaunay’’

a segment is splitEncroachment:

if it intersectsa cell notbelonging toan endpoint.

Special Rules for the Boundary

Page 39: Anisotropic Voronoi Diagrams and Guaranteed−Quality ...jrs/papers/anisotalk.pdf · Anisotropic Voronoi diagrams offer an elegant and fast way to define anisotropic ‘‘Delaunay’’

a segment is splitEncroachment:

if it intersectsa cell notbelonging toan endpoint.

Insertion ofencroaching sitesis (usually)

Split thesegment instead.

forbidden.

Special Rules for the Boundary

Page 40: Anisotropic Voronoi Diagrams and Guaranteed−Quality ...jrs/papers/anisotalk.pdf · Anisotropic Voronoi diagrams offer an elegant and fast way to define anisotropic ‘‘Delaunay’’

Voronoi Refinement

Page 41: Anisotropic Voronoi Diagrams and Guaranteed−Quality ...jrs/papers/anisotalk.pdf · Anisotropic Voronoi diagrams offer an elegant and fast way to define anisotropic ‘‘Delaunay’’

If metric tensorderivatives, no triangle has angle < 20° asmeasured by any point in the triangle.

Main ResultM is smooth with bounded

Page 42: Anisotropic Voronoi Diagrams and Guaranteed−Quality ...jrs/papers/anisotalk.pdf · Anisotropic Voronoi diagrams offer an elegant and fast way to define anisotropic ‘‘Delaunay’’

It attacks every bad triangle and topological irregularity.Therefore, it will either succeed or refine forever.

A bad triangle can exist only where a short edge liesbeside a large gap. Filling the gap creates no shorteredges.

Why Does It Work?

Page 43: Anisotropic Voronoi Diagrams and Guaranteed−Quality ...jrs/papers/anisotalk.pdf · Anisotropic Voronoi diagrams offer an elegant and fast way to define anisotropic ‘‘Delaunay’’

Why Does It Work?

v

w

qq

If a point q on a Voronoi arc is not wedged, then eitherq is far from v and w, or

Mv and Mw are very different.

the shortest existing edge.Refinement will alleviate the second condition.

In the first condition, new edges are no shorter than

Page 44: Anisotropic Voronoi Diagrams and Guaranteed−Quality ...jrs/papers/anisotalk.pdf · Anisotropic Voronoi diagrams offer an elegant and fast way to define anisotropic ‘‘Delaunay’’

Loose Anisotropic Voronoi Diagrams

before

anisotropic loose anisotropicVoronoi diagramVoronoi diagram

Fast local site insertion replaces O( ) alg.εn2+

Page 45: Anisotropic Voronoi Diagrams and Guaranteed−Quality ...jrs/papers/anisotalk.pdf · Anisotropic Voronoi diagrams offer an elegant and fast way to define anisotropic ‘‘Delaunay’’

Anisotropic Voronoi diagrams offer an elegantand fast way to define anisotropic ‘‘Delaunay’’triangulations.The first theoretically guaranteed anisotropicmesh generation algorithm!

Conclusions

Future WorkShould work in practice in 3D (though thetheoretical properties don’t all follow).

Page 46: Anisotropic Voronoi Diagrams and Guaranteed−Quality ...jrs/papers/anisotalk.pdf · Anisotropic Voronoi diagrams offer an elegant and fast way to define anisotropic ‘‘Delaunay’’

Samples

Page 47: Anisotropic Voronoi Diagrams and Guaranteed−Quality ...jrs/papers/anisotalk.pdf · Anisotropic Voronoi diagrams offer an elegant and fast way to define anisotropic ‘‘Delaunay’’

|| f − g || 8|d TH(p) d| < dTCd for any direction

Anisotropy and Interpolation Error

f

g

E

You can judge the error of an elementby judging Et

tby isotropic error bounds/measures.

= Hessian ofH f.Suppose d .Let = with ECE 2 symmetric positive definite.