The main function defines a GeoWin geow and a list<point>
LP . The points are generated using an input scene sc_points
of geow . The convex hull is represented by a result
scene sc_hull using convex_hull as the
update object, sc_points as input scene, and "Convex
Hull" as the name of the scene. geo_scene is a
typedef for GeoScene* .
The boundary drawing color for sc_hull is set to blue
and the scene is made visible.
Finally, geow is opened in interactive
mode with edit scene sc_points . (See also Create
and Open GeoWin.)
On the right there is a screenshot of the program after adding
some points interactively. Clicking on the picture shows the GeoWin
in original
size.
|