How to use Partition_2 Demo
Reset application
Press Ctrl+N combination keys or go to File menu and choose "New". The polygon will be erased, the window's visible area will be set to default. (-1, 1, -1, 1)
Create a new window
Press Ctrl+W combination keys or go to File menu and choose "New Window". A new window will appear, modifying the visible area to be the default (-1, 1, -1, 1).
Close the current window
Press Ctrl+X combination keys or go to File menu and choose "Close". You may do it for any window other than the initial one, this operation will close only the one you have choosen. If you do this for the initial parent window, it will close the others too.
Quit the application
Press Ctrl+Q combination keys or go to File menu and choose "Quit". When you quit the application, all the windows you have created will be destroyed.
Generate polygon
To generate a polygon, go to Draw menu and choose "Generate polygon" or press Ctrl+G combination keys. This action will generate a random simple polygon having the points coordinates between ranges (-1, 1). The old polygon is erased each time you generate a new one.
Create a new simple polygon
Left click on the "Input simple polygon" layer. Be sure there is no layer activated in standard toolbar that eat events. To be sure, press the arrow button situated on the standard toolbar. Left Click anywhere on the application's drawing area (the black rectangle) to insert points in the polygon. You may press "Esc" key if you want to erase the last point. Once you have completed the polygon press the right click to close the polygon. To deactivate this layer, just press the arrow button situated on the same toolbar.
Save the current polygon
Press Ctrl+S combination keys or go to File menu, then choose "Save Polygon". A save file dialog will appear, the default name given is "polygon.cgal". You may change the name then press "Save" or hit "Enter" key. To cancel the save process just press Esc key.
Load an existing polygon
Press Ctrl+L combination keys or go to File menu and choose "Load Polygon". A load file dialog will appear, having a filter that displays only the files with "cgal" extension. Choose a file then press "Open" button or hit "Enter" key.