Lecture 2 Line Segment Intersection Computational Geometry Prof.Dr.Th.Ottmann 1 Line Segment Intersection Motivation: Computing the overlay of several.

Slides:



Advertisements
Similar presentations
Planar Subdivision Induced by planar embedding of a graph. Connected if the underlying graph is. edge vertex hole in f face f disconnected subdivision.
Advertisements

Polygon Triangulation
Spatial Information Systems (SIS) COMP Terrain modeling and geometric problems (part 2)
Computational Geometry
Map Overlay Algorithm. Birch forest Wolves Map 1: Vegetation Map 2: Animals.
Polygon overlay in double precision arithmetic One example of why robust geometric code is hard to write Jack Snoeyink & Andrea Mantler Computer Science,
2/14/13CMPS 3120 Computational Geometry1 CMPS 3120: Computational Geometry Spring 2013 Planar Subdivisions and Point Location Carola Wenk Based on: Computational.
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.
One of the most important problems is Computational Geometry is to find an efficient way to decide, given a subdivision of E n and a point P, in which.
9/12/06CS 6463: AT Computational Geometry1 CS 6463: AT Computational Geometry Fall 2006 Triangulations and Guarding Art Galleries II Carola Wenk.
Overlay of Two Subdivisions
Intersections. Intersection Problem 3 Intersection Detection: Given two geometric objects, do they intersect? Intersection detection (test) is frequently.
Lecture 3 Lower envelopes Computational Geometry, 2005/06 Prof.Dr.Th.Ottmann 1 The Lower Envelope The Pointwise Minimum of a Set of Functions.
Lecture 7: Voronoi Diagrams Presented by Allen Miu Computational Geometry September 27, 2001.
Robert Pless, CS 546: Computational Geometry Lecture #3 Last Time: Convex Hulls Today: Plane Sweep Algorithms, Segment Intersection, + (Element Uniqueness,
17. Computational Geometry Chapter 7 Voronoi Diagrams.
The Half-Edge Data Structure Computational Geometry, WS 2007/08 Lecture 3, Part III Prof. Dr. Thomas Ottmann Khaireel A. Mohamed Algorithmen & Datenstrukturen,
The Half-Edge Data Structure
1 Lecture 8: Voronoi Diagram Computational Geometry Prof. Dr. Th. Ottmann Voronoi Diagrams Definition Characteristics Size and Storage Construction Use.
Line Segment Intersection Computational Geometry, WS 2007/08 Lecture 3 – Part I Prof. Dr. Thomas Ottmann Algorithmen & Datenstrukturen, Institut für Informatik.
The Design and Implementation of Planar Arrangements of Curves in CGAL Iddo Hanniel The research has been carried out at Tel Aviv University under the.
Lecture 12 : Special Case of Hidden-Line-Elimination Computational Geometry Prof. Dr. Th. Ottmann 1 Special Cases of the Hidden Line Elimination Problem.
Special Cases of the Hidden Line Elimination Problem Computational Geometry, WS 2007/08 Lecture 16 Prof. Dr. Thomas Ottmann Algorithmen & Datenstrukturen,
Voronoi Diagrams Computational Geometry, WS 2006/07 Lecture 10 Prof. Dr. Thomas Ottmann Algorithmen & Datenstrukturen, Institut für Informatik Fakultät.
UMass Lowell Computer Science Advanced Algorithms Computational Geometry Prof. Karen Daniels Spring, 2004 Lecture 2 Chapter 2: Polygon Partitioning.
Hidden-Line Elimination Computational Geometry, WS 2006/07 Lecture 14 Prof. Dr. Thomas Ottmann Algorithmen & Datenstrukturen, Institut für Informatik Fakultät.
Lecture 8 : Arrangements and Duality Computational Geometry Prof. Dr. Th. Ottmann 1 Duality and Arrangements Duality between lines and points Computing.
Point Location Computational Geometry, WS 2007/08 Lecture 5 Prof. Dr. Thomas Ottmann Algorithmen & Datenstrukturen, Institut für Informatik Fakultät für.
Roadmap Methods How do I get there? Visibility Graph Voronoid Diagram.
Lecture 6: Point Location Computational Geometry Prof. Dr. Th. Ottmann 1 Point Location 1.Trapezoidal decomposition. 2.A search structure. 3.Randomized,
Voronoi Diagrams.
UMass Lowell Computer Science Advanced Algorithms Computational Geometry Prof. Karen Daniels Spring, 2007 Lecture 2 Chapter 2: Polygon Partitioning.
UMass Lowell Computer Science Advanced Algorithms Computational Geometry Prof. Karen Daniels Spring, 2004 Chapter 4: 3D Convex Hulls Monday, 2/23/04.
Line Segment Intersection Computational Geometry, WS 2006/07 Lecture 3 – Part II Prof. Dr. Thomas Ottmann Algorithmen & Datenstrukturen, Institut für Informatik.
Lecture 2 Line Segment Intersection Computational Geometry Prof.Dr.Th.Ottmann 1 Line Segment Intersection Motivation: Computing the overlay of several.
Area, buffer, description Area of a polygon, center of mass, buffer of a polygon / polygonal line, and descriptive statistics.
Line Segment Intersection Computational Geometry, WS 2006/07 Lecture 3 – Part I Prof. Dr. Thomas Ottmann Algorithmen & Datenstrukturen, Institut für Informatik.
Roadmap Methods How do I get there? Visibility Graph Voronoid Diagram.
Lection 1: Introduction Computational Geometry Prof.Dr.Th.Ottmann 1 History: Proof-based, algorithmic, axiomatic geometry, computational geometry today.
Lecture 2 Line Segment Intersection Computational Geometry Prof.Dr.Th.Ottmann 1 Line Segment Intersection Motivation: Computing the overlay of several.
Brute-Force Triangulation
CSE53111 Computational Geometry TOPICS q Preliminaries q Point in a Polygon q Polygon Construction q Convex Hulls Further Reading.
Clipping Apart from clipping to the view volume, clipping is a basic operation in many other algorithms –Breaking space up into chunks –2D drawing and.
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.
Part 6: Graphics Output Primitives (4) 1.  Another useful construct,besides points, straight line segments, and curves for describing components of a.
UNC Chapel Hill M. C. Lin Line Segment Intersection Chapter 2 of the Textbook Driving Applications –Map overlap problems –3D Polyhedral Morphing.
Geometry B Section 12.3 Surface Area of Pyramids and Cones.
Geometry 10-1 Solids Face: the flat side of a figure
October 9, 2003Lecture 11: Motion Planning Motion Planning Piotr Indyk.
Planar Subdivision Induced by planar embedding of a graph. Connected if the underlying graph is. edge vertex disconnected subdivision Complexity = #vertices.
Line Segment Intersection Computational Geometry, WS 2006/07 Lecture 3 – Part III Prof. Dr. Thomas Ottmann Algorithmen & Datenstrukturen, Institut für.
Arrangements and Duality Sanjay Sthapit Comp290 10/6/98.
CMPS 3130/6130 Computational Geometry Spring 2015
Vertices, Edges and Faces By Jordan Diamond. Vertices In geometry, a vertices is a special kind of point which describes the corners or intersections.
Arrangements and Duality Motivation: Ray-Tracing Fall 2001, Lecture 9 Presented by Darius Jazayeri 10/4/01.
Robert Pless, CS 546: Computational Geometry Lecture #3 Last Time: Plane Sweep Algorithms, Segment Intersection, + (Element Uniqueness)
12.1 Exploring Solids.
UNC Chapel Hill M. C. Lin Computing Voronoi Diagram For each site p i, compute the common inter- section of the half-planes h(p i, p j ) for i  j, using.
Arrangements and Duality Supersampling in Ray Tracing.
Solid Modeling Dr. Scott Schaefer.
CS552: Computer Graphics Lecture 28: Solid Modeling.
3. Polygon Triangulation
How do I get there? Roadmap Methods Visibility Graph Voronoid Diagram.
CMPS 3130/6130 Computational Geometry Spring 2017
Computational Geometry 2
CMPS 3130/6130 Computational Geometry Spring 2017
Computational Geometry Capter:1-2.1
Polygon Triangulation
Overlay of Two Subdivisions
Presentation transcript:

Lecture 2 Line Segment Intersection Computational Geometry Prof.Dr.Th.Ottmann 1 Line Segment Intersection Motivation: Computing the overlay of several maps The Sweep-Line-Paradigm: A visibility problem Line Segment Intersection The Doubly Connected Edge List Computing boolean operations on polygons

Lecture 2 Line Segment Intersection Computational Geometry Prof.Dr.Th.Ottmann 2 Maps

Lecture 2 Line Segment Intersection Computational Geometry Prof.Dr.Th.Ottmann 3 Motivation Thematic map overlay in Geographical Information Systems road riverOverlaid maps 1. Thematic overlays provide important information. 2. Roads and rivers can both be regarded as networks of line segments.

Lecture 2 Line Segment Intersection Computational Geometry Prof.Dr.Th.Ottmann 4 Doubly Connected Edge List Example node 1 = { ((1, 2)), 12 } face 1 = { 15, [ 67 ] } edge 54 = { 5, 45, 1, 43, 15 } 3 Records : vertex { Coordinates IncidentEdge }; face { OuterComponent InnerComponent }; halfedge { Origin Twin IncidentFace Next Prev };

Lecture 2 Line Segment Intersection Computational Geometry Prof.Dr.Th.Ottmann 5 Overlay Plane Sweep (downward above) Data structures : Status structure T, Event Queue Q, Doubly Connected Edge List D Edges in Q and D are crosswise connected S2 S1 U(S1,S2)

Lecture 2 Line Segment Intersection Computational Geometry Prof.Dr.Th.Ottmann 6 Overlay

Lecture 2 Line Segment Intersection Computational Geometry Prof.Dr.Th.Ottmann 7 Re-use received from edges, there orientation remains Updating of T and Q such as segment intersection 2 phases: Edges and corners surfaces

Lecture 2 Line Segment Intersection Computational Geometry Prof.Dr.Th.Ottmann 8 Edges and Corners Example: Edge of a component cuts nodes of the other Two halfedge Records e´, e´´ with v as origin generate set twin-pointers and double edges NEXT and PREV at the corner points set and neighbours of e update  time O(1 + deg(v)) at a node  time O(n l og n + k l og n) altogether, k complexity O(s1, s2)        e´ e´´ v

Lecture 2 Line Segment Intersection Computational Geometry Prof.Dr.Th.Ottmann 9 Surfaces Difference inside and outside by 180° f

Lecture 2 Line Segment Intersection Computational Geometry Prof.Dr.Th.Ottmann 10 Surfaces c6 c7 c3 c5 c1 c2 c4 c8 Difference same surface Applies only to linked nodes! c1 c6 c3 c2 c5 c8 c4 c7 Outside Holes

Lecture 2 Line Segment Intersection Computational Geometry Prof.Dr.Th.Ottmann 11 Construction of G cc´

Lecture 2 Line Segment Intersection Computational Geometry Prof.Dr.Th.Ottmann 12 Construction of G cc´ Theorem : Connected components form a surface G can be designed in O(n+k).

Lecture 2 Line Segment Intersection Computational Geometry Prof.Dr.Th.Ottmann 13 Boolean Operations For Polygons P1 P2 P1 AND P2 P1 OR P2 P1 – P2 (new surfaces in overlap) (all surfaces in overlap) (old faces) - (newly generated faces) Let n = |P1| + |P2| All 3 operations can be calculated in O(n log n + k log n), k is output size

Lecture 2 Line Segment Intersection Computational Geometry Prof.Dr.Th.Ottmann 14 LEDA Library of Efficient Datastructures and Algorithms LEDA/leda.html mehlhorn/LEDAbook.html Installed under : /usr/local/leda/v3.6.1