Triangulation of a polygon

Slides:



Advertisements
Similar presentations
Polygon Triangulation
Advertisements

Brute-Force Triangulation
2/3/15CMPS 3130/6130 Computational Geometry1 CMPS 3130/6130 Computational Geometry Spring 2015 Triangulations and Guarding Art Galleries II Carola Wenk.
UNC Chapel Hill M. C. Lin Polygon Triangulation Chapter 3 of the Textbook Driving Applications –Guarding an Art Gallery –3D Morphing.
Lecture 3: Polygon Triangulation Computational Geometry Prof. Dr. Th. Ottmann Triangulation (Naive)
9/12/06CS 6463: AT Computational Geometry1 CS 6463: AT Computational Geometry Fall 2006 Triangulations and Guarding Art Galleries II Carola Wenk.
POLYGONS! gone! Polly.
Geometry 6.1 Angles of Polygons
Chapter 6 Polygons. A polygon is a closed plane figure formed by three or more segments that intersect only at their endpoints. PolygonsNot Polygons.
Classes of Polygons Planar polygons Non-planar polygons Simple
Objectives Classify polygons based on their sides and angles.
Honors Geometry Sections 3.1 & 3.6 Polygons and Their Angle Measures
Lesson 1.6 Classify Polygons. Objective Classify Polygons.
Query Processing in Databases Dr. M. Gavrilova.  Introduction  I/O algorithms for large databases  Complex geometric operations in graphical querying.
UMass Lowell Computer Science Advanced Algorithms Computational Geometry Prof. Karen Daniels Spring, 2004 Lecture 2 Chapter 2: Polygon Partitioning.
UMass Lowell Computer Science Advanced Algorithms Computational Geometry Prof. Karen Daniels Spring, 2007 Lecture 2 Chapter 2: Polygon Partitioning.
Brute-Force Triangulation
Regular Polygons A polygon is regular if all sides and interior angles are congruent. Congruent: same size, same shape.
9/7/06CS 6463: AT Computational Geometry1 CS 6463: AT Computational Geometry Fall 2006 Triangulations and Guarding Art Galleries Carola Wenk.
Triangulating a monotone polygon
Polygons Polygons. Polygon Any shape where every segment intersects exactly two others at its endpoints.
1 Triangulation Supplemental From O’Rourke (Chs. 1&2) Fall 2005.
6.1 Polygons.
Warm-Up Draw an example of a(n)…
Classifying polygons Chapter 1.
Vertices, Edges and Faces By Jordan Diamond. Vertices In geometry, a vertices is a special kind of point which describes the corners or intersections.
1/29/15CMPS 3130/6130 Computational Geometry1 CMPS 3130/6130 Computational Geometry Spring 2015 Triangulations and Guarding Art Galleries Carola Wenk.
Polygons Advanced Geometry Polygons Lesson 1. Polygon a closed figure Examples NO HOLES NO CURVES SIDES CANNOT OVERLAP all sides are segments.
Geometry Section 1.6 Classifying Polygons. Terms Polygon-closed plane figure with the following properties Formed by 3 or more line segments called sides.
CS6234 Advanced Algorithms - Convex hull. Terminologies – ◦ Convex hull of a set Q of points is the smallest convex polygon P for which each point in.
§10.1 Polygons  Definitions:  Polygon  A plane figure that…  Is formed by _________________________ called sides and… ..each side intersects ___________.
Contest Algorithms January 2016 Triangulation & the Art Gallery Problem Contest Algorithms1.
CLASSIFYING POLYGONS UNIT 1 LESSON 6. Classifying Polygons In geometry, a figure that lies in a plane is called a plane figure. A polygon is a closed.
Geometry Section 6.1 Polygons. The word polygon means many sides. In simple terms, a polygon is a many-sided closed figure.
ANGLES OF POLYGONS. Polygons  Definition: A polygon is a closed plane figure with 3 or more sides. (show examples)  Diagonal  Segment that connects.
9/8/10CS 6463: AT Computational Geometry1 CS 6463: AT Computational Geometry Fall 2010 Triangulations and Guarding Art Galleries Carola Wenk.
Informal Geometry 10.2 Diagonals and Angle Measure.
Date: 8.1(a) Notes: Polygon Interior Angles Sum Lesson Objective: Find and use the sum of the measures of the interior angles of a polygon. CCSS: G.MG.1.
3-5 Angles of a Polygon. A) Terms Polygons – each segment intersects exactly two other segments, one at each endpoint. Are the following figures a polygon?
Polygon Triangulation
Holt Geometry 6-1 Properties and Attributes of Polygons 6-1 Properties and Attributes of Polygons Holt Geometry Warm Up Warm Up Lesson Presentation Lesson.
Date: 8.1 Notes: Polygon Interior Angles Sum Lesson Objective: Find and use the sum of the measures of the interior angles of a polygon. CCSS: G.MG.1.
Objectives Classify polygons based on their sides and angles.
Determine the name of the polygon
1. If the measures of two angles of a triangle are 19º
CMPS 3130/6130 Computational Geometry Spring 2017
3. Polygon Triangulation
Objectives Classify polygons based on their sides and angles.
8.1 Angles of Polygons What you’ll learn:
Lesson 8-1 Angles of Polygons Lesson 3-4: Polygons.
CSCE 441 Computer Graphics: Clipping Polygons Jinxiang Chai
Fill Area Algorithms Jan
Query Processing in Databases Dr. M. Gavrilova
3-5 Angles of a Polygon.
Do Now…… 1. A triangle with a 90° angle has sides that are 3 cm, 4 cm,
Algorithm design techniques Dr. M. Gavrilova
6.1 Vocabulary Side of a polygon Vertex of a polygon Diagonal
Geometry 6.1 Polygons.
The Art Gallery Problem
The Art Gallery Problem
Polygon Triangulation
AMS 345/CSE 355 Computational Geometry
A closed plane figure with at least 3 sides.
CSCE 441 Computer Graphics: Clipping Polygons Jinxiang Chai
Polygons.
CSCE 441 Computer Graphics: Clipping Polygons Jinxiang Chai
8.1 Find Angle Measures in Polygons
Guessing a card Alice hides a card x
6.1 The Polygon Angle-Sum Theorems
Lesson 3-4 Polygons.
Presentation transcript:

Triangulation of a polygon A typical computational geometric algorithm.

Draw a triangulation of this polygon What kind of algorithms did you use?

Triangulation algorithms (I will show three algorithms) Find an ear and remove it. Process the remaining n-1 –gon similarly (recursively). Question: How to find an ear ? What is the time complexity? O(n2) Easy to implement ?

Algorithm 1. Find a diagonal and decompose the polygon into two parts. Recursively process each part Question How to find a diagonal? Which diagonal should we find? What is the time complexity? Again, O(n2)

Algorithm 3 (our main algorithm). Decompose the polygon into y-monotone polygons Process each y-monotone polygon Y-monotone polygon : A polygon such that any horizontal line intersects it with a segment or a point (or empty set).

Algorithm 3. Decompose the polygon into y-monotone polygons Lemma If there is no concave and locally minimal/maximal vertex, then the polygon is y-monotone Thus, it suffices to find diagonals to Rrsolve all concave and locally minimal/maximal vertices Plane sweep algorithm can be applied (shown on the white board.)

Process from top to down One side: concave chain The other side: single vertex (or the top vertex shared by the concave chain) Green vertex: next vertex

Process from top to down Green vertex: next vertex If the next vertex is in the opposite site of the concave chain, then draw diagonals between left and right sides

Process from top to down Green vertex: next vertex If the next vertex is in the opposite side of the concave chain, then draw diagonals between left and right sides

Process from top to down If the next vertex is in the same side of the concave chain and the previous vertex turns out to become concave, continue the concave chain. If the previous vertex makes convex turn, then draw diagonals until we make the chain concave

Analysis Given the polygon P as the list of n vertices in counterclockwise order The first step ( decomposition into y-monotone polygons) Plane sweep needs O( n log n) time The second step (triangulation of y-monotone polygons) At each step, we either go one vertex down, or find a triangle. We find at most n-2 triangles, and can go down at most n times. O(n) time Total: O(n log n) time Question. Is this optimal? NO. There is an O(n) time algorithm. Chazelle, Bernard (1991), "Triangulating a Simple Polygon in Linear Time", Discrete & Computational Geometry, 6: 485–524, doi:10.1007/BF02574703, ISSN 0179-5376 But, see this comment: implementation-of-chazelles-triangulation-algorithm Challenge: Devise an implementable O(n) time algorithm

One problem of the triangulation obtained by the algorithm There are many triangulations of a polygon. Exercise: How many triangulations of convex 5-gon? In general, for a convex n-gon?  ******* number The algorithm tends to find a skinny one For several applications, we need good shaped triangulation, introducing some interior points. Graphics, mesh generation, architecture. How to define “good shape?” Discussed in the next lecture

Class schedule I am sorry that we have many very few lectures. 12/3 Travel to Kanazawa (Advisory board meeting of JAIST) 12/10 Yes, we have a class 12/17 Travel in Taiwan (Advisory chair of a conference) 12/24,31 National holidays 1/7 Yes, we have a class 1/14 Travel in Germany (Workshop) 1/21, 28 Plan to join to CS fundamental Lecturer: Yago Diez, a Catalan. Please register to his class if you want the credit of CS fundamental. I do not consider supplementary classes, but you can visit my office if you want to discuss.