How to use 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 see the conflict zone
keep the left mouse button pressed. The vertex is inserted when you
release the button.
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.
Delete an existing vertex
(1)Left click on the "Move/Delete vertex" layer. If the "Input point"
layer was active, it will deactivate itself. (2)Right click on the
drawing area (the black rectangle) near an existing vertex. A popup menu
will apear and the selected vertex will be highlighted. If the popup
doesn't appear, press the arrow button on the "standard toolbar" to
deactivate all layers that could eat the events. (3)Choose "Delete".
The vertex will be removed from the triangulation. To delete more than
one vertex, repeat the process from (2) to (3). To deactivate this layer,
just press the arrow button situated on the same toolbar.
Move existing vertex
(1)Left click on the "Move/Delete vertex" layer. If the "Input point"
or "Input line" layer was active, it will deactivate itself. (2)Right
click on the drawing area (the black rectangle) near an existing vertex.
A popup menu will apear and the selected vertex will be highlighted.
(3)Choose "Move". From this moment, the vertex will move as you move the
mouse. The triangulation will reflect the changes. (4)Left click on the
drawing area will position the vertex at the mouse coordinates. You may
repeat the process from the step (2) to (4). To deactivate this layer,
just press the arrow button situated on the same toolbar.
Input line to display the line_walk
Left Click on the "Input Line" layer. If the "Input point" or
"Move/Delete vertex" layer was active, it will deactivate itself. Lef
click on the drawing area to define the first point of the line. Move the
mouse where you want the second point be situated. As you move the mouse
you will see a line defined by the first point and the point situated at
mouse coordinates. Click the left mouse button. The final line will be
displayed and you can see the result of the line walk alghoritm, the
triangles intersected by this line will be highlighted on the screen.
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 visible area.
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 triangulation saved does not contain
the visible area. The application will change the current visible area
to fit the bounding box of the triangualtion.
Last modified: Fri May 16 11:46:03 MEST 2003