From 4e4c4d9fffbc24fc2566cc1ab49956e43cab427d Mon Sep 17 00:00:00 2001 From: Panagiotis Cheilaris Date: Sat, 5 Jul 2014 12:26:57 +0200 Subject: [PATCH] test for SSS axis-parallel Signed-off-by: Panagiotis Cheilaris --- .../test_sdg_traits_2.cpp | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/Segment_Delaunay_graph_Linf_2/test/Segment_Delaunay_graph_Linf_2/test_sdg_traits_2.cpp b/Segment_Delaunay_graph_Linf_2/test/Segment_Delaunay_graph_Linf_2/test_sdg_traits_2.cpp index d2ee0881c06..5eb312233ec 100644 --- a/Segment_Delaunay_graph_Linf_2/test/Segment_Delaunay_graph_Linf_2/test_sdg_traits_2.cpp +++ b/Segment_Delaunay_graph_Linf_2/test/Segment_Delaunay_graph_Linf_2/test_sdg_traits_2.cpp @@ -517,6 +517,35 @@ void test_traits(const char* title) Point_2(150, 30), CGAL::POSITIVE); + // SSS axis-parallel segments + test_incircle( + Segment_2(Point_2(200, 50), Point_2(200, 150)), + Segment_2(Point_2(-50, 200), Point_2(450, 200)), + Segment_2(Point_2(-50, 0), Point_2(450, 0)), + Point_2(250, 50), + CGAL::POSITIVE); + + test_incircle( + Segment_2(Point_2(200, 50), Point_2(200, 150)), + Segment_2(Point_2(-50, 200), Point_2(450, 200)), + Segment_2(Point_2(-50, 0), Point_2(450, 0)), + Point_2(-50, 100), + CGAL::POSITIVE); + + test_incircle( + Segment_2(Point_2(200, 50), Point_2(200, 150)), + Segment_2(Point_2(-50, 200), Point_2(450, 200)), + Segment_2(Point_2(-50, 0), Point_2(450, 0)), + Point_2(0, 100), + CGAL::ZERO); + + test_incircle( + Segment_2(Point_2(200, 50), Point_2(200, 150)), + Segment_2(Point_2(-50, 200), Point_2(450, 200)), + Segment_2(Point_2(-50, 0), Point_2(450, 0)), + Point_2(100, 100), + CGAL::NEGATIVE); + std::cout << "====================================" << std::endl; std::cout << std::endl; }