How to use the Snap Rounding demo

This program demonstrate the Iterated Snap-Rounding (ISR) method, a modification of the Snap Rounding SR method. SR is a method that converts arbitrary-precision arrangements of segments into a fixed-precision representation, classified as a finite precision approximation technique. In ISR each vertex is at least half-the-width-of-a-pixel away from any non-incident edge.

### Editing

Press the "Segment layer" button to enter insert mode. Then, insert as many segments you want. To insert a segment, left click the mouse to choose the source point, move the mouse to determine the segment, and close it with another left click.

By default the window is mapped to the square [-1,-1]x[1,1] consisting of 4 pixels. Each click at the negative scaling-factor button, increases the number of pixels along each one of the two major dimensions by a factor of 2. Clicking at the positive scaling-factor button has the opposite effect.

### Options

- Show/hide hot points
- Show/hide input segments
- Show/hide output segments

### File Handling

- File format
- Open file
- Save file

### Show/hide hot points

Toggle the display of the hot points.

### Show/hide input segments

Toggle the display of the input segments.

### Show/hide output segment

Toggle the display of the (iterated) output segments.

### File format

Input files are ASCII files. Each input file contains the number of input segments followed by that many segments. Each segment is specified in a separate line described by its two endpoints. Each point is described by its x and y coordinate in rational format (i.e., 1.2/3.4).

### Open file

Go to menu bar -> File -> Open, and load a suitable file.

### Save file

Go to menu bar -> File -> Save, and save the file in the proper place.

Last modified: 12/09/2004