CSN-523: Computational Geometry: Indian Institute of Technology Roorkee

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 13

INDIAN INSTITUTE OF TECHNOLOGY ROORKEE

CSN-523: Computational Geometry

Lecture 3: Introduction

Dr. Sudip Roy


Assistant Professor
Department of Computer Science & Engineering
Piazza Class Room: https://piazza.com/iitr.ac.in/spring2017/csn523/home
Moodle Site: http://moodle.iitr.ac.in/course/view.php?id=23 [Enrollment Key: csn523@2017]
Planar Subdivisions:

2
Planar Subdivisions:

3
Eulers Triangulation of a Polygon:

How many ways can one subdivides an n-gon into triangles?

Diagonal of polygon P

Triangulation Theorem

4
Some Basics of Polygons:

Reflex Vertex

Convex Polygon

Regular Polygon

5
Constructing Simple Polygon:

6
Constructing Simple Polygon:

Algorithm Simple Polygon (p1, p2, p3, , pn):


Input: p1, p2, p3, , pn (points in plane)
Output: P (a simple polygon whose vertices are p1, p2, p3, , pn in some order)
Begin
For i=2 to n do
Compute the angle alpha_i between the line -p1-pi- and the x-axis (it is
sometimes desirable to take an extreme point instead of p1, e.g., a point from the
set with the largest x coordinate)
Sort the points according to the angles alpha_2, , alpha_n (Break ties
according to distances from p1)
P is the polygon defined by the list of points in sorted order
End

7
Arrangements:

8
Arrangements:

9
Arrangements:

10
Arrangements:

11
Arrangements:

12
Distance between Two Points:

13

You might also like