Triangulation Supplemental - PowerPoint PPT Presentation

1 / 18
About This Presentation
Title:

Triangulation Supplemental

Description:

Def: cusp. A reflex vertex whose adjacent vertices v- and v are either both above or below v. ... Remove cusps by connecting the supporting vertex to the ... – PowerPoint PPT presentation

Number of Views:33
Avg rating:3.0/5.0
Slides: 19
Provided by: jmc9
Category:

less

Transcript and Presenter's Notes

Title: Triangulation Supplemental


1
Triangulation Supplemental
  • From ORourke (Chs. 12)
  • Fall 2002

2
Contents
  • Ear clipping algorithm
  • Triangulating monotonic polygons
  • Monotonic decomposition via trapezoidalization

3
Ear Clipping
  • Go around the polygon to check whether a diagonal
    can be drawn from (i) to (i2)
  • Diagonal check
  • No edge crossing AND inside P

What is the time complexity in the worst case?
4
(No Transcript)
5
Validity of Diagonal
  • No edge crossing
  • Each potential diagonal (i, i2) need to check
    with ? edges
  • In-Cone check
  • local geometry

6
Triangulating Monotonic Polygons
  • Linear time algorithm O(n)
  • Fact on monotonic polygons
  • Def a vertex is called reflex if its internal
    angle is strictly greater than p
  • Def cusp
  • A reflex vertex whose adjacent vertices v- and v
    are either both above or below v.
  • Lemma
  • If a polygon P has no cusps, then it is monotone.

7
Algorithm Ideas
  • Cut off triangles from the top in a greedy
    fashion
  • At each step, the first available triangle
    removed
  • For each vertex v, connect v to all the vertices
    above it and visible via a diagonal, and remove
    the top portion of the polygon thereby
    triangulated
  • Continue with the next vertex below v

8
(No Transcript)
9
Case 1
Case 2a, 2b
10
0,1,2
0,1,2,3
0,1,2,3,4
0,1,2,3,4
4,5
4,6
6,7
7,8
7,9
11
Trapezoidalization
  • Accomplish monotonic subdivision via horizontal
    trapezoidalization
  • Supporting vertices the vertices through which
    the horizontal lines are drawn
  • Assume P be a polygon with no two vertices on a
    horizontal line
  • Each trapezoid has exactly two supporting
    vertices one on top, one on bottom
  • Remove cusps by connecting the supporting vertex
    to the opposite vertex

12
Pass through each v the maximal horizontal
segment s such that s ? P and s??P v
13
Trapezoidalization via Plane Sweep
  • Time complexity O(n log n)
  • Maintain a balanced tree of edges

14
Sweep Line Events
(, a, c, b, )
(, a, d, b, )
(, a, c, d, b, )
(, a, b, )
(, a, b, )
(, a, c, d, b, )
15
(No Transcript)
16
Summary
17
Homework
  • Analyze the worst case complexity of ear clipping
    algorithm
  • Triangulate (and keep track of the reflex chain)
    of the polygon on the next page
  • Decompose the polygon on page 13 into monotonic
    pieces using trapezoidalization

18
(No Transcript)
Write a Comment
User Comments (0)
About PowerShow.com