"Draw": add a straight line or vertex using MOUSE conveniently.
The starting and ending points are stored automatically if it is different
from existing points. If one push down the MOUSE and the release it, only
a point is added. By default, the input mode is "Draw".
"Move": move a vertex and the lines associated with the vertex.
One need to push down the MOUSE close enough to a vertex and then drag.
"Delete": delete a vertex and the lines associated with the vertex.
One need to push down the MOUSE close enough to a vertex and then drag.
The above 3 modes can not exist at the same time.
"Grid": set a grid in the working area.
This mode can be set on any time. It can also be set off any time. When the
grid is on, the location of any input event will be on grid points.
Ther are 3 CONTROL BUTTONS:
"DEMO": algorithm demonstration. If there are 3 points in the working
area, the "DEMO" button is enabled. By pressing the button, regularization
and triangulation procedures will start.
"OptDemo": the same as above except that the triangulation procedure
is donw with optimization to give more regular triangulation.
"Restart": clear the working area and reset status to starting point.
Choices of colors:
Ther are colors to choose for the L-R sweep procedure, R-L sweep procedure
and triangulation procedure. The added line in that procedure will be
plotted in the color choosen for that procedure. This is for the better view
of the results of different procedures.
Control of the show:
Chnage the scrollbar to control the speed of demo.
During the demo procedures, we can use MOUSE to control the sweep
line and see what he wants to see. Just keep press the mouse down. When
the sweep line stops, one can drag it forward or backward.