How to use Constrained_triangulation_2 Demo
Main Functionality
Editing
Persistance
Reset application
Press Ctrl+N combination keys or go to File menu and choose "New". The
triangulation will be erased, the window's viewport 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 viewport to make the
triangulation fit in the new window.
Print
Press Ctrl+P combination keys or go to File menu and choose "Print".
The visible area on the screen will be outputed to the print device of
your choice.
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 Delaunay triangulation
To generate a Delaunay triangulation, go to Edit menu and choose
"Generate Triangulation" button, or press Ctrl+G combination keys.
Each time you generate the triangulation, the old one will be erased.
Insert a new vertex
Left click on the "Input point" 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 the vertex.
The vertex is inserted in the triangulation. To insert more than one
vertex, keep clicking on the rectangle without deactivating the "Input
point" layer. To deactivate this layer, just press the arrow button
situated on the same toolbar.
Insert a new segment constrained
Left click on the "Input Segment" layer. Be sure there is no layer
activated in the 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 specify the source of
the segment. Move the mouse to specify the target of the segment. Note
that the segment is not defined until you click the second time. You may
even zoom in or out when the first segment point was defined. This way
you are able to choose exactly where your segment could be. To insert
more than one segment, repeat this procedure without deactivating the
"Input Segment" layer. To deactivate this layer, just press the arrow
button situated on the same toolbar.
Insert a polygon
Left click on the "Input Polygon" layer. Be sure there is no layer
activated in the standard toolbar that eat events. To be sure, press the
arrow button situated on the standard toolbar. Left click on the drawing
area (the black rectangle) to specify the vertices of the polygon. Note
that the polygon could not be simple. A right click on the drawing area
will close the polygon without introducing a new vertex. The polygon
input layer has the same functionality as the segment input layer: you
may zoom in or out while you construct your polygon. To insert more than
one polygon, repeat the procedure without deactivating the "Input
Polygon" layer. To deactivate this layer, just press the arrow button
situated on the same toolbar.
Save the current triangulation
Press Ctrl+S combination keys or go to File menu, then choose "Save
Triangulation". A save file dialog will appear, the default name given is
"triangulation.cgal". You may change the name then press "Save" or hit
"Enter" key. To cancel the save process just press Esc key.
The triangulation saved does not contain the
viewport.
Load an existing triangulation
Press Ctrl+L combination keys or go to File menu and choose "Load
Triangulation". 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.
The application will change the current
visible area to fit the bounding box of the triangualtion.
Load a constraints file
Press Ctrl+C combination keys or go to File menu and choose "Load
Constraints". A load file dialog will appear, having a filter that
displays only the files with "edg" extension. Go to data directory
and choose norway.edg, then press "Open" button or hit "Enter" key.
The application will change the current
visible area to fit the bounding box of the triangualtion.
Last modified: Wed Jul 2 14:15:52 MEST 2003