cgal/Snap_rounding_2/demo/Snap_rounding_2
Andreas Fabri 98068e84c4 added missing ':' 2006-08-29 14:50:20 +00:00
..
data Move packages to trunk root 2006-02-14 08:58:19 +00:00
help Move packages to trunk root 2006-02-14 08:58:19 +00:00
README Made sure the README is up to date. 2006-05-22 14:21:40 +00:00
cgal_types.h Change CVS keywords to SVN style 2006-02-16 14:30:13 +00:00
grid.xpm Move packages to trunk root 2006-02-14 08:58:19 +00:00
makefile changed .C to .cpp in examples 2006-07-09 19:43:25 +00:00
segment_input_layer_with_snapping.h Change CVS keywords to SVN style 2006-02-16 14:30:13 +00:00
snap_rounding_2.cpp added missing ':' 2006-08-29 14:50:20 +00:00
snap_rounding_2.vcproj upgrade to VC7.3 and fixes 2006-04-25 19:18:15 +00:00
snap_rounding_2_layers.h Change CVS keywords to SVN style 2006-02-16 14:30:13 +00:00
snap_rounding_2_toolbar.cpp changed .C to .cpp in examples 2006-07-09 19:43:25 +00:00
snap_rounding_2_toolbar.h Change CVS keywords to SVN style 2006-02-16 14:30:13 +00:00

README

The snap-rounding demo maintains and displays three types of objects:

1. Input segments - in black.
2. Segments processed by the snap-rounding procedure - in red.
3. Hot pixels - in green.

You mat insert segments manually (you may want to zoom out or zoom in
before doing this, in order to have a large enough grid to work with).
Alternatively, you can read segments from the input files under the data/
directory, or create input files by yourself.

Each input file should have the following form:

  4
  0.7 0.5   10.7 10.7
  0.7 10.5  10.5 0.5
  10.7 2.5  0.7 2.5
  10.7 7.5  0.7 7.5

That is, the first line specifies the number of segments (call it n),
and is followed by n lines that specify the endpoints of each segment.
An endpoint is given by a pair of real coordinates.