-
after intersections have been found, six new arcs are formed,
three from arc 1 and three from arc 2:
1. (0,1) (0,3) (2,3) (2,2)
2. (2,2) (2,1) (1,1)
3. (1,1) (0,1)
4. (1,0) (3,0) (3,2) (2,2)
5. (2,2) (1,2) (1,1)
6. (1,1) (1,0)
-
because the right and left polygon labels are known for each
input arc, we know the labels of the new polygons as soon as the intersections
have been found
-
there are four new polygons
-
their attributes combine red and blue attributes: 00, A0,
A1 and 01
-
the arc right and left labels, deduced from the geometry
of the intersections, are:
Arc Right
Left
1
A0 00
2
A1 01
3
A0 00
4
00 01
5
A0 A1
6
00 01
-
a more complex example (diagram)
-
in this case the right and left polygon labels for arcs 1,
2, 4, 5 and 7 would be known from the geometry of the intersections:
1R: A0
1L: 00
2R: A1
2L: 01
4R: A1
4L: 01
5R: 01
5L: 00
7R: A1
7L: A0
-
the labels of the remaining arcs must be determined
-
labels can be passed from one arc to another around a polygon:
3R: must be the same as 2R and 4R
6L: from 2L, 4L
-
arc 3 was part of the red network, so its soils labels are
known, the remaining (blue) part of its left label must be the same as
the blue part of its right label
-
3R is A1 - thus 3L is B1
-
thus 6R is B1
-
how to get the blue labels of arc 8?
-
use a point in polygon routine to find the enclosing blue
polygon
-
use a data structure in which arcs on the inside of the polygon
boundary "point" to arcs on the outside of any enclosed islands
-
e.g. 5R -> 4L -> 6L -> 8L -> 2L -> 5R
-
thus the labels of arc 8 are 8L: 01, 8R: C1
-
the final step in the algorithm is to identify all new polygons
by following around each polygon from one arc to the next until every right
and left side of every arc has been identified with a uniquely numbered
polygon