cgal/Snap_rounding_2/demo/Snap_rounding_2
Laurent Rineau b861e82892 Fix conditionnal compilation. Do not compile Qt3 demos if CGAL_Qt3 is not found. 2008-11-20 13:22:51 +00:00
..
data
help
CMakeLists.txt Fix conditionnal compilation. Do not compile Qt3 demos if CGAL_Qt3 is not found. 2008-11-20 13:22:51 +00:00
README
cgal_types.h
grid.xpm
makefile matching Snap_rounding_2 to Arrangement_on_surface_2 2007-07-30 14:27:18 +00:00
segment_input_layer_with_snapping.h Remove obsolete config flag CGAL_CFG_USING_BASE_MEMBER_BUG_3. 2007-08-09 09:48:44 +00:00
snap_rounding_2.cpp Second pass to remove CGAL_USE_QT: remove "#ifndef CGAL_USE_QT"/"#else"/"#endif // CGAL_USE_QT" 2008-09-09 21:42:42 +00:00
snap_rounding_2_layers.h colors, initial size, segment input 2007-04-30 15:33:39 +00:00
snap_rounding_2_toolbar.cpp 4th pass to remove CGAL_USE_QT: remove "#ifdef CGAL_USE_QT"/"#endif" 2008-09-09 21:53:57 +00:00
snap_rounding_2_toolbar.h

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.