CENG 789 – Digital Geometry Processing 02- Polygons and Triangulations Asst. Prof. Yusuf Sahillioğlu Computer Eng. Dept,, Turkey.

Slides:



Advertisements
Similar presentations
Planar graphs Algorithms and Networks. Planar graphs2 Can be drawn on the plane without crossings Plane graph: planar graph, given together with an embedding.
Advertisements

UNC Chapel Hill Lin/Foskey/Manocha Steps in DP: Step 1 Think what decision is the “last piece in the puzzle” –Where to place the outermost parentheses.
Planar Orientations Chapter 4 ( ) in the book Written By: Tomer Heber.
EECS 4101/5101 Prof. Andy Mirzaian. References: [M. de Berge et al ’00] chapter 3 [Preparata-Shamos’85] chapter 6 [O’Rourke’98] chapter 1 [M. de Berge.
Fundamentals of computational geometry M. Ramanathan STTP CAD 2011.
UNC Chapel Hill M. C. Lin Polygon Triangulation Chapter 3 of the Textbook Driving Applications –Guarding an Art Gallery –3D Morphing.
I. The Problem of Molding Does a given object have a mold from which it can be removed? object not removable mold 1 object removable Assumptions The object.
By Groysman Maxim. Let S be a set of sites in the plane. Each point in the plane is influenced by each point of S. We would like to decompose the plane.
Math 20: Foundations FM20.4 Demonstrate understanding of properties of angles and triangles including: deriving proofs based on theorems and postulates.
Classes of Polygons Planar polygons Non-planar polygons Simple
The Maths of Pylons, Art Galleries and Prisons Under the Spotlight John D. Barrow.
Feb Polygon Triangulation Shmuel Wimer Bar Ilan Univ., School of Engineering.
Applied Combinatorics, 4th Ed. Alan Tucker
Steps in DP: Step 1 Think what decision is the “last piece in the puzzle” –Where to place the outermost parentheses in a matrix chain multiplication (A.
3. Delaunay triangulation
Lecture 3: Polygon Triangulation Computational Geometry Prof. Dr. Th. Ottmann 1 Polygon Triangulation Motivation: Guarding art galleries Art gallery theorem.
CENG 789 – Digital Geometry Processing 01- Introduction Asst. Prof. Yusuf Sahillioğlu Computer Eng. Dept,, Turkey.
Computational Geometry Seminar Lecture 1
Tucker, Applied Combinatorics, Section 1.4, prepared by Patti Bodkin
Lecture 3: Polygon Triangulation Computational Geometry Prof. Dr. Th. Ottmann Polygon Triangulation Motivation: Guarding art galleries Art gallery theorem.
Polygon Triangulation Computational Geometry, WS 2007/08 Lecture 9 Prof. Dr. Thomas Ottmann Algorithmen & Datenstrukturen, Institut für Informatik Fakultät.
Art Gallery Theorem Computational Geometry, WS 2006/07 Lecture 8, Part 1 Prof. Dr. Thomas Ottmann Algorithmen & Datenstrukturen, Institut für Informatik.
Curve Curve: The image of a continous map from [0,1] to R 2. Polygonal curve: A curve composed of finitely many line segments. Polygonal u,v-curve: A polygonal.
The Art Gallery Problem
Brute-Force Triangulation
The Art Gallery Problem
Our Lesson Polygons Confidential.
9-4 Geometry in Three Dimensions  Simple Closed Surfaces  Regular Polyhedra  Cylinders and Cones.
CS 450: Computer Graphics REVIEW: OVERVIEW OF POLYGONS
Graph Theory Ch6 Planar Graphs. Basic Definitions  curve, polygon curve, drawing  crossing, planar, planar embedding, and plane graph  open set  region,
9/7/06CS 6463: AT Computational Geometry1 CS 6463: AT Computational Geometry Fall 2006 Triangulations and Guarding Art Galleries Carola Wenk.
Graph Theory Chapter 6 Planar Graphs Ch. 6. Planar Graphs.
Planar Graphs: Euler's Formula and Coloring Graphs & Algorithms Lecture 7 TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.:
Vertex – A point at which two or more edges meet Edge – A line segment at which two faces intersect Face – A flat surface Vertices, Edges, Faces.
Geometry 3.5 Angles of a Polygon Standard 12.0 & 13.0.
On the union of cylinders in 3-space Esther Ezra Duke University.
Nonoverlap of the Star Unfolding Boris Aronov and Joseph O’Rourke, 1991 A Summary by Brendan Lucier, 2004.
12.1– Explore Solids.
Planar Graphs. A graph is called planar if it can be drawn in the plane in such a way that no two edges cross. Example of a planar graph: The clique on.
12.1 – Explore Solids.
Planar Graphs Graph Coloring
Computational Geometry Polygon Triangulation and The Art Gallery Problem Joachim Gudmundsson NICTA, Sydney.
Chapter Area, Pythagorean Theorem, and Volume 14 Copyright © 2013, 2010, and 2007, Pearson Education, Inc.
1 INFO 2950 Prof. Carla Gomes Module Induction Rosen, Chapter 4.
1/29/15CMPS 3130/6130 Computational Geometry1 CMPS 3130/6130 Computational Geometry Spring 2015 Triangulations and Guarding Art Galleries Carola Wenk.
Contest Algorithms January 2016 Triangulation & the Art Gallery Problem Contest Algorithms1.
9/8/10CS 6463: AT Computational Geometry1 CS 6463: AT Computational Geometry Fall 2010 Triangulations and Guarding Art Galleries Carola Wenk.
CENG 789 – Digital Geometry Processing 03- Point Sets Asst. Prof. Yusuf Sahillioğlu Computer Eng. Dept,, Turkey.
An Introduction to Computational Geometry: Arrangements and Duality Joseph S. B. Mitchell Stony Brook University Some images from [O’Rourke, Computational.
Properties and Attributes of Polygons Entry task The car at each vertex of a Ferris wheel holds 5 people. The sum of the interior angles of the Ferris.
Polygon Triangulation
1 Schnyder’s Method. 2 Motivation Given a planar graph, we want to embed it in a grid We want the grid to be relatively small And we want an efficient.
CENG 789 – Digital Geometry Processing 03- Point Sets
CMPS 3130/6130 Computational Geometry Spring 2017
3. Polygon Triangulation
Algorithms and Networks
Great Theoretical Ideas In Computer Science
Outline 1 Properties of Planar Graphs 5/4/2018.
37TH ANNUAL AMATYC CONFERENCE A Modern Existence Proof Through Graphs
Name the polygon by the number of sides.
CENG 789 – Digital Geometry Processing 02- Polygons and Triangulations
Advanced Algorithms Analysis and Design
Tucker, Applied Combinatorics, Sec 2.4
The Art Gallery Problem
The Art Gallery Problem
Polygon Triangulation
Vertical Angles Vertical angles are across from each other and are created by intersecting lines.
Computational Geometry
14 Chapter Area, Pythagorean Theorem, and Volume
Gaph Theory Planar Graphs
Presentation transcript:

CENG 789 – Digital Geometry Processing 02- Polygons and Triangulations Asst. Prof. Yusuf Sahillioğlu Computer Eng. Dept,, Turkey

Polygons 2 / 34 We’ll deal with thin-shell surfaces, represented by polygon meshes. set of polygons, e.g., triangles, representing a 2D surface embedded in 3D. set of polygons representing a 2D surface embedded in 2D //not our interest. Let’s analyze polygons in detail.

Polygons 3 / 34 Analogy ~ Polygons are to planar geometry as integers are to numerical math.

Polygons 4 / 34 Analogy ~ Prime factorization (unique).. ~ Prime factorization (not unique*) * no benefit of Fundamental Theorem of Arithmetic Triangulations are the prime factorization of polygons (come to that later).

Polygons 5 / 34 Polygon: closed region of the plane bounded by a finite collection of line segments forming a closed curve that does not intersect itself. Line segments are called edges. Points where 2 edges meet are called vertices. Vertices are ordered in a polygon. 3D generalization: polyhedron.

Polygonal Jordan Curve 6 / 34 Theorem: boundary B (white) of a polygon P partitions the plane into 2 parts, namely bounded interior (b) and unbounded exterior (g). Intuition: Shows the Fundamental similarity between all polygons! Each form above divides the paper into an inside part (blue) and an outside part (green).

Polygonal Jordan Curve 7 / 34 Theorem: boundary B (white) of a polygon P partitions the plane into 2 parts, namely bounded interior (b) and unbounded exterior (g). A point that lies in 1 part cannot get to the other no matter how the curve/boundary is stretched.

Polygonal Jordan Curve 8 / 34 Theorem: boundary B (white) of a polygon P partitions the plane into 2 parts, namely bounded interior (b) and unbounded exterior (g). A point that lies in 1 part cannot get to the other no matter how the curve/boundary is stretched. It will behave the same no matter how the boundary is distorted.

Polygonal Jordan Curve 9 / 34 Theorem: boundary B (white) of a polygon P partitions the plane into 2 parts, namely bounded interior (b) and unbounded exterior (g). A point that lies in 1 part cannot get to the other no matter how the curve/boundary is stretched. Now it is more difficult to tell whether point x is inside or outside. But wait there is a(n easy) way!

Polygonal Jordan Curve 10 / 34 Theorem: boundary B (white) of a polygon P partitions the plane into 2 parts, namely bounded interior (b) and unbounded exterior (g). Proof: draw a line from x to infinity (this line not parallel to any edge of P; ok ‘cos P has finite # edges). If line intersects B odd # of times: x is inside. Else: x is outside. Holds for arbitrary x. Proof completed.

Polygonal Jordan Curve 11 / 34 Theorem: boundary B (white) of a polygon P partitions the plane into 2 parts, namely bounded interior (b) and unbounded exterior (g). Observation: the trivial odd-even algorithm is triggered to decided whether a user clicks inside a region in a game or a button in a GUI.

Diagonal 12 / 34 Diagonal of polygon P is a line segment connecting 2 vertices of P and lying in the interior of P. P with a diagonal a line segment crossing diagonals

Triangulation 13 / 34 Triangulation of polygon P is a decomposition of P into triangles by a maximal set of noncrossing diagonals. Maximal: no new diagonal may be added without crossing existings. Easier than triangulation of a structureless point set, e.g., Delaunay. We will see this general case later; now just assume we have the boundary as an ordered set of vertices, i.e., as polygon P.

Triangulation 14 / 34 How many different triangulations does polygon P have? How many triangles are in each triangulation of P? Does every polygon have a triangulation? Must every polygon have at least 1 diagonal?

Triangulation 15 / 34 Must every polygon w/ 4+ vertices have at least 1 diagonal? YES. Proof: v bottom vertex. a & b adjacent to v. If line segment ab lies in P, it is the diagonal. Else sweep line L from v towards ab, parallel to ab. x first vertex L touches. vx is the desired diagonal.

Triangulation 16 / 34 Does every polygon have a triangulation? YES. Proof: Induct on n = # of vertices of P. If n=3, P=triangle; done. For n>3, use prev theorem to find a diagonal cutting P into P1 and P2, which are triangulatable by induction hypothesis. By Jordan theorem, interior of P1 is exterior of P2 and vice versa; hence no triangle overlap.

Triangulation 17 / 34 Does every polygonal region w/ holes have a triangulation? YES. Proof: Induct on h = # of holes.

Triangulation 18 / 34 Does every polyhedron have a tetrahedralization? NO. Polyhedron: 3D version of a polygon, a 3D solid bounded by finitely many polygons. Tetrahedron: simplest polyhedron; pyramid with a triangular base. Tetrahedralization: partition of a polyhedron into tets.

Triangulation 19 / 34 Does every polyhedron have a tetrahedralization? NO. Tetrahedralization of a cube into 5 and 12 tetrahedra.

Triangulation 20 / 34 Does every polyhedron have a tetrahedralization? NO. A counter example exists: Schonhardt polyhedron. Notice that all possible diagonals are external.

Triangulation 21 / 34 Number of triangles in any triangulation of a polygon P is the same and equal to n-2 if P has n vertices. Proof: Induct on n = # of vertices of P. If n=3, trivially true. Diagonal ab exists. P1 and P2 have n1 and n2 vertices. n1 + n2 = n + 2 ‘cos a and b appear in both P1 and P2. By induction hypo, there are n1-2 and n2-2 triangles in P1 and P2. Hence P has (n1-2) + (n2-2) = n1+n2 – 4 = n+2 – 4 = n - 2 triangles.

Triangulation 22 / 34 Ears: 3 consecutive vertices a b c form ear of P if ac is a diagonal. (our 1 st triangulation algo aka ear clipping method ) Every polygon w/ 4+ vertices has at least 2 ears. Proof: By prev thm P has n-2 triangles. Each tri covers at most 2 edges of boundary. Because there’re n edges on boundary but only n-2 tris, at least 2 tris must contain 2 edges of boundary (pigeonhole). These are the ears.

Triangulation 23 / 34 Sum of interior angles of any polygon with n vertices is pi(n-2). Proof: every triangulation has n-2 triangles and sum of each tri is pi.

Triangulation 24 / 34 Sum of turn angles of any polygon with n vertices is 2pi. Turn angle at a vertex is pi – internal angle at v. Proof: Follows from npi – (n-2)pi = 2pi.

Triangulation 25 / 34 How many different triangulations does polygon P have? No closed formula ‘cos small position changes can lead to different triangulatns. Find a polygon with n vertices that has a unique triangulation. 3 convex vertices and a reflex chain of n-3 vertices, generalizing: A vertex is convex/reflex if its angle is less than or equal to/greater than pi. A polygon is convex if all its vertices are convex. Or equivalently, if every pair of nonadjacent vertices determines a diagonal. How many different triangulations does a convex polygon P have? n+2 vertices P has Cn (Catalan number) triangulations.

Triangulation 26 / 34 How many different triangulations do these polygons have? 12 2 Find a polygon with n vertices that has exactly 2 triangulations. Hint: and a rectangle.

Triangulation 27 / 34 Recall in 2D every polygon with n vertices has the same # of triangles in any triangulations: n-2 triangles. How about polyhedral in 3D? Not valid  Two different tetrahedralizations of the same polyhedron have different # of tets: OR

Art Gallery Problem 28 / 34 Min # of stationary guards needed to protect the gallery. Polygonal floor plan of the gallery. Each guard has 360 degree visibility. Protect: every point in P is visible to some guard. x in P is visible to y in P if line segment xy lies in P.

Art Gallery Problem 29 / 34 Min # of guards to protect/cover these polygons

Art Gallery Problem 30 / 34 First time 2 guides are needed is for some hexagons.

Art Gallery Problem 31 / 34 Bound that is good for any polygon with n vertices? Reflex vertices will cause problems w/ large # of vertices. Since there can exist so many reflexes construct a useful example based on prongs: a comb-shaped example. A comb of m prongs has 3m vertices. Since each pong needs its own gard, at least floor(n/3) guards needed. Lower bound: sometimes floor(n/3) guards necessary. Is this also sufficient?

Art Gallery Problem 32 / 34 Is floor(n/3) guards also sufficient to cover n-vertex polygon? = Is this also an upper bound? Trick: triangulation as 1 guard clearly covers a triangle. We have n-2 triangles so is n-2 the upper bound? Not too tight . Put guards not inside the triangles but on the vertices.

Art Gallery Problem 33 / 34 Use induction to prove any triangulation of P is 3-colorable: each vert of P can be assigned a color so that any connected pair has different color. Induct on n = # of vertices. For n=3, trivially true. For n>3, we know P has an ear abc with b as tip. Removing the ear produces a P’ w/ n-1 vertices where b is removed. By induction hypo, P’ is 3-colorable. Replacing the ear, coloring b with the color not used by a or c, provides the desired coloring.

Art Gallery Problem 34 / 34 Since there’re n vertices, the least frequently used color appears at most floor(n/3) times (pigeonhole principle). Put guards at these verts. Since every triangle has 1 vertex of this color, and this guard covers the triangle, gallery is completely covered (with at most floor(n/3) guards). n=18; least-freq color red is used 5 times.