Sweepline 2
Sweepline 2
Spring 2015
e d
c
b
e
d
1/22/15 CMPS 3130/6130 Computational Geometry 9
Event Handling
1. Left segment endpoint
– Add new segment to sweep line status
– Test adjacent segments on sweep line l for intersection with new
segment (see Lemma)
– Add new intersection points to event queue
b
c
a e d
cc
bb
de
d
1/22/15 CMPS 3130/6130 Computational Geometry 10
Event Handling
2. Intersection point
– Report new intersection point
– Two segments change order along l
→ Test new adjacent segments for new intersection points (to
insert into event queue)
b
c
a e d
b
c
a e d
ee
cc
bd
d
1/22/15 CMPS 3130/6130 Computational Geometry 12
Intersection Lemma
p
s