From e63e981dac011fda61ba908a7ccfa72292bb2ec2 Mon Sep 17 00:00:00 2001 From: Lutz Kettner Date: Tue, 11 Dec 2001 14:36:05 +0000 Subject: [PATCH] - removed test/WindowStream/polygonal_2.C and test/WindowStream/polygonal_2.cmd. --- Packages/window/changes.txt | 3 + Packages/window/test/WindowStream/cgal_test | 1 - Packages/window/test/WindowStream/makefile | 7 +- Packages/window/test/WindowStream/polygonal.C | 77 ------------------- .../window/test/WindowStream/polygonal.cmd | 1 - 5 files changed, 4 insertions(+), 85 deletions(-) delete mode 100644 Packages/window/test/WindowStream/polygonal.C delete mode 100644 Packages/window/test/WindowStream/polygonal.cmd diff --git a/Packages/window/changes.txt b/Packages/window/changes.txt index 0a9927aac95..65cbd7d7b93 100644 --- a/Packages/window/changes.txt +++ b/Packages/window/changes.txt @@ -1,3 +1,6 @@ +- removed test/WindowStream/polygonal_2.C and + test/WindowStream/polygonal_2.cmd. + 2.8.19 ( 4 Dec 2001) - removed CGAL/IO/polygonal_2.h diff --git a/Packages/window/test/WindowStream/cgal_test b/Packages/window/test/WindowStream/cgal_test index 0a2da07f5ee..6575349ac1f 100755 --- a/Packages/window/test/WindowStream/cgal_test +++ b/Packages/window/test/WindowStream/cgal_test @@ -63,6 +63,5 @@ touch $ERRORFILE # compile and run the tests #---------------------------------------------------------------------# -compile_and_run polygonal compile_and_run manual_example_ps compile_and_run test_window_stream_xy_3 diff --git a/Packages/window/test/WindowStream/makefile b/Packages/window/test/WindowStream/makefile index b3ce2ef2f66..a1842396344 100644 --- a/Packages/window/test/WindowStream/makefile +++ b/Packages/window/test/WindowStream/makefile @@ -35,20 +35,15 @@ LDFLAGS = \ #---------------------------------------------------------------------# all: \ - test_window_stream_xy_3 \ - polygonal + test_window_stream_xy_3 test_window_stream_xy_3$(EXE_EXT): test_window_stream_xy_3$(OBJ_EXT) $(CGAL_CXX) $(LIBPATH) $(EXE_OPT)test_window_stream_xy_3 test_window_stream_xy_3$(OBJ_EXT) $(LDFLAGS) -polygonal$(EXE_EXT): polygonal$(OBJ_EXT) - $(CGAL_CXX) $(LIBPATH) $(EXE_OPT)polygonal polygonal$(OBJ_EXT) $(LDFLAGS) - manual_example_ps$(EXE_EXT): manual_example_ps$(OBJ_EXT) $(CGAL_CXX) $(LIBPATH) $(EXE_OPT)manual_example_ps manual_example_ps$(OBJ_EXT) $(LDFLAGS) clean: \ - polygonal.clean \ manual_example_ps.clean \ test_window_stream_xy_3.clean diff --git a/Packages/window/test/WindowStream/polygonal.C b/Packages/window/test/WindowStream/polygonal.C deleted file mode 100644 index 554018e8007..00000000000 --- a/Packages/window/test/WindowStream/polygonal.C +++ /dev/null @@ -1,77 +0,0 @@ - -// ============================================================================ -// -// Copyright (c) 1999 The CGAL Consortium -// -// This software and related documentation is part of an INTERNAL release -// of the Computational Geometry Algorithms Library (CGAL). It is not -// intended for general use. -// -// ---------------------------------------------------------------------------- -// -// release : -// release_date : -// -// file : include/CGAL/test/WindowStream/polygonal.C -// revision : $Revision$ -// revision_date : $Date$ -// author(s) : Stefan Schirra -// -// -// coordinator : MPI, Saarbruecken () -// ============================================================================ - - -#include -#include -#include -#include -#ifdef CGAL_USE_LEDA -# include -#endif // CGAL_USE_LEDA -#include - -typedef CGAL::Point_2 > Point2; - -int -main(int argc, char **) -{ - if (argc >= 2) { return 0; } - - std::ifstream F("polygon_coordinates"); - CGAL::set_ascii_mode(F); - CGAL::set_ascii_mode(std::cout); - std::istream_iterator< Point2> in_start(F); - std::istream_iterator< Point2> in_end; - std::vector V ; - std::copy( in_start, in_end, std::back_inserter(V) ); - #ifdef CGAL_USE_LEDA - CGAL::Window_stream W; - CGAL::Bbox_2 b = V.begin()->bbox(); - for ( std::vector::iterator it = V.begin(); it != V.end(); ++it) - { b = b + (*it).bbox(); } - double x_span = b.xmax() - b.xmin(); - double y_span = b.ymax() - b.ymin(); - double span = std::max( x_span, y_span); - span *= 1.1; - W.init((b.xmin()+b.xmax()-span)/2, - (b.xmin()+b.xmax()+span)/2, - (b.ymin()+b.ymax()-span)/2 ); - CGAL::cgalize(W); - W.display(); - W << CGAL::RED; - CGAL::send_to_stream_as_polygon( W, V.begin(), V.end()); - leda_wait( 5); - W.clear(); - W << CGAL::GREEN; - CGAL::send_to_stream_as_polyline( W, V.begin(), V.end()); - leda_wait( 5); - #else - std::cout << std::endl << "Polygon" << std::endl; - CGAL::send_to_stream_as_polygon( std::cout, V.begin(), V.end()); - std::cout << std::endl << "Polyline" << std::endl; - CGAL::send_to_stream_as_polyline( std::cout, V.begin(), V.end()); - #endif // LEDA - - return 0; -} diff --git a/Packages/window/test/WindowStream/polygonal.cmd b/Packages/window/test/WindowStream/polygonal.cmd deleted file mode 100644 index 3bb52f80529..00000000000 --- a/Packages/window/test/WindowStream/polygonal.cmd +++ /dev/null @@ -1 +0,0 @@ -do not execute polygonal