This class contains funtions for scanning subdivisions defined on
line segments, polyline curves and conic arcs.
It also defines a function for drawing the two input subdivisions
on a window stream, and letting users perfoming boolean operations on them.
The two maps are scanned from two text files, given by the user.
After they are scanned, their overlay is constructed, and the demo is ready for
point-loation query given by the user (by clicking on mouse).
The two maps are scanned from two text files, given by the user.
After they are scanned, their overlay is constructed, and the demo is ready for
point-loation query given by the user (by clicking on mouse).
1. reading a planar map or planar map woth intersections from file
(handling line segments, polylines and conic arcs).
2. drawing the two maps and their overlay on a window stream and making point-location
query from mouse.
The demo is very similar to the demo which collects the input curves from mouse.
The only difference here is the input curves.
In this case we collect them from two files: each file per map.
The user clicks on mouse in order to construct the two maps.
After the two maps are constructed, the user can operate boolean operations on both maps.
The provided boolean operations are: intersection, union ans symmetric difference.
The input curves are collected from the user by clicking on mouse.
After contrsucting the two maps, the overlay is constructed and point-location
operations are perfromed. Each face can have 4 colors:
1. Purple Face - an overlay face laying under two bounded faces.
2. Blue Face - an overlay face laying under a bounded face of the first map and the unbounded face of the second.
3. Red Face - an overlay face laying under the unbounded face of the first map and a bounded face of the second.
4. Orange Face - an overlay face laying under the unbounded faces of both maps.