From a2e3f9be0db01fbe1ebe10999160496293195a72 Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Tue, 2 Jan 2024 16:57:45 +0000 Subject: [PATCH] Triangulation_2: Make IO save by changing file names --- .../_test_cls_constrained_triangulation_2.h | 26 +++++++++---------- .../CGAL/_test_cls_regular_triangulation_2.h | 8 +++--- .../CGAL/_test_cls_triangulation_short_2.h | 8 +++--- 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/Triangulation_2/test/Triangulation_2/include/CGAL/_test_cls_constrained_triangulation_2.h b/Triangulation_2/test/Triangulation_2/include/CGAL/_test_cls_constrained_triangulation_2.h index 558f714c5465..b9ff68f77ab9 100644 --- a/Triangulation_2/test/Triangulation_2/include/CGAL/_test_cls_constrained_triangulation_2.h +++ b/Triangulation_2/test/Triangulation_2/include/CGAL/_test_cls_constrained_triangulation_2.h @@ -222,52 +222,52 @@ _test_cls_constrained_triangulation(const Triang &) /******** I/O *******/ std::cout << "output to a file" << std::endl; - std::ofstream of0_1("T01.triangulation", std::ios::out); + std::ofstream of0_1("T01ct.triangulation", std::ios::out); CGAL::IO::set_ascii_mode(of0_1); of0_1 << T0_1; of0_1.close(); - std::ofstream of0_2("T02.triangulation"); + std::ofstream of0_2("T02ct.triangulation"); CGAL::IO::set_ascii_mode(of0_2); of0_2 << T0_2; of0_2.close(); - std::ofstream of1_1("T11.triangulation"); + std::ofstream of1_1("T11ct.triangulation"); CGAL::IO::set_ascii_mode(of1_1); of1_1 << T1_1; of1_1.close(); - std::ofstream of1_2("T12.triangulation"); + std::ofstream of1_2("T12ct.triangulation"); CGAL::IO::set_ascii_mode(of1_2); of1_2 << T1_2; of1_2.close(); - std::ofstream of2_1("T21.triangulation"); + std::ofstream of2_1("T21ct.triangulation"); CGAL::IO::set_ascii_mode(of2_1); of2_1 << T2_1; of2_1.close(); - std::ofstream of2_2("T22.triangulation"); + std::ofstream of2_2("T22ct.triangulation"); CGAL::IO::set_ascii_mode(of2_2); of2_2 << T2_2; of2_2.close(); std::cout << "input from a file" << std::endl; - std::ifstream if0_1("T01.triangulation"); CGAL::IO::set_ascii_mode(if0_1); + std::ifstream if0_1("T01ct.triangulation"); CGAL::IO::set_ascii_mode(if0_1); Triang T0_1_copy; if0_1 >> T0_1_copy; - std::ifstream if0_2("T02.triangulation"); CGAL::IO::set_ascii_mode(if0_2); + std::ifstream if0_2("T02ct.triangulation"); CGAL::IO::set_ascii_mode(if0_2); Triang T0_2_copy; if0_2 >> T0_2_copy; - std::ifstream if1_1("T11.triangulation"); CGAL::IO::set_ascii_mode(if1_1); + std::ifstream if1_1("T11ct.triangulation"); CGAL::IO::set_ascii_mode(if1_1); Triang T1_1_copy; if1_1 >> T1_1_copy; - std::ifstream if1_2("T12.triangulation"); CGAL::IO::set_ascii_mode(if1_2); + std::ifstream if1_2("T12ct.triangulation"); CGAL::IO::set_ascii_mode(if1_2); Triang T1_2_copy; if1_2 >> T1_2_copy; - std::ifstream if2_1("T21.triangulation"); CGAL::IO::set_ascii_mode(if2_1); + std::ifstream if2_1("T21ct.triangulation"); CGAL::IO::set_ascii_mode(if2_1); Triang T2_1_copy; if2_1 >> T2_1_copy; - std::ifstream if2_2("T22.triangulation"); CGAL::IO::set_ascii_mode(if2_2); + std::ifstream if2_2("T22ct.triangulation"); CGAL::IO::set_ascii_mode(if2_2); Triang T2_2_copy; if2_2 >> T2_2_copy; // test copy of constrained Triangulation Triang T2_4(T2_2); - std::ofstream of2_2_bis("T22.triangulation"); + std::ofstream of2_2_bis("T22ct.triangulation"); CGAL::IO::set_ascii_mode(of2_2_bis); of2_2_bis << T2_4; of2_2_bis.close(); All_faces_iterator fit2 = T2_2.all_faces_begin(); diff --git a/Triangulation_2/test/Triangulation_2/include/CGAL/_test_cls_regular_triangulation_2.h b/Triangulation_2/test/Triangulation_2/include/CGAL/_test_cls_regular_triangulation_2.h index 2d5656c93b20..762070693ee6 100644 --- a/Triangulation_2/test/Triangulation_2/include/CGAL/_test_cls_regular_triangulation_2.h +++ b/Triangulation_2/test/Triangulation_2/include/CGAL/_test_cls_regular_triangulation_2.h @@ -749,23 +749,23 @@ _test_cls_regular_triangulation_2( const Triangulation & ) // input output have not yet been overload // so they do not input output hidden vertices std::cout << " output to a file" << std::endl; - std::ofstream of1_5("T15.triangulation"); + std::ofstream of1_5("T15rt.triangulation"); CGAL::IO::set_ascii_mode(of1_5); of1_5 << T1_5; of1_5.close(); - std::ofstream of2_3("T23.triangulation"); + std::ofstream of2_3("T23rt.triangulation"); CGAL::IO::set_ascii_mode(of2_3); of2_3 << T2_3; of2_3.close(); // std::cout << " input from a file" << std::endl; -// std::ifstream if1_5("T15.triangulation"); CGAL::IO::set_ascii_mode(if1_5); +// std::ifstream if1_5("T15rt.triangulation"); CGAL::IO::set_ascii_mode(if1_5); // Cls T1_5_copy; if1_5 >> T1_5_copy; // assert( T1_5_copy.is_valid(verbose) && // T1_5_copy.number_of_vertices() == // T1_5.number_of_vertices() - T1_5.number_of_hidden_vertices()); -// std::ifstream if2_3("T23.triangulation"); CGAL::IO::set_ascii_mode(if2_3); +// std::ifstream if2_3("T23rt.triangulation"); CGAL::IO::set_ascii_mode(if2_3); // Cls T2_3_copy; if2_3 >> T2_3_copy; // assert( T2_3_copy.is_valid(verbose) && // T2_3_copy.number_of_vertices() == diff --git a/Triangulation_2/test/Triangulation_2/include/CGAL/_test_cls_triangulation_short_2.h b/Triangulation_2/test/Triangulation_2/include/CGAL/_test_cls_triangulation_short_2.h index 61fbb042389e..132e487bff27 100644 --- a/Triangulation_2/test/Triangulation_2/include/CGAL/_test_cls_triangulation_short_2.h +++ b/Triangulation_2/test/Triangulation_2/include/CGAL/_test_cls_triangulation_short_2.h @@ -476,22 +476,22 @@ _test_cls_triangulation_short_2( const Triangul &) /********************/ /******** I/O *******/ std::cout << " output to a file" << std::endl; - std::ofstream of1_5("T15.triangulation"); + std::ofstream of1_5("T15short.triangulation"); CGAL::IO::set_ascii_mode(of1_5); of1_5 << T1_5; of1_5.close(); - std::ofstream of2_3("T23.triangulation"); + std::ofstream of2_3("T23short.triangulation"); CGAL::IO::set_ascii_mode(of2_3); of2_3 << T2_3; of2_3.close(); std::cout << " input from a file" << std::endl; - std::ifstream if1_5("T15.triangulation"); CGAL::IO::set_ascii_mode(if1_5); + std::ifstream if1_5("T15short.triangulation"); CGAL::IO::set_ascii_mode(if1_5); Triangul T1_5_copy; if1_5 >> T1_5_copy; assert( T1_5_copy.is_valid() && T1_5_copy.number_of_vertices() == T1_5.number_of_vertices() ); - std::ifstream if2_3("T23.triangulation"); CGAL::IO::set_ascii_mode(if2_3); + std::ifstream if2_3("T23short.triangulation"); CGAL::IO::set_ascii_mode(if2_3); Triangul T2_3_copy; if2_3 >> T2_3_copy; assert( T2_3_copy.is_valid() && T2_3_copy.number_of_vertices() == T2_3.number_of_vertices() );