From 6b9e5caab5cffb1369e8a183c11fc59475df5ffc Mon Sep 17 00:00:00 2001 From: Panagiotis Cheilaris Date: Mon, 14 Jul 2014 21:47:17 +0200 Subject: [PATCH] test PSS bdiff=2 opposite side pssd2btw3.cin Signed-off-by: Panagiotis Cheilaris --- .../test_sdg_traits_2.cpp | 48 +++++++++++++++++++ 1 file changed, 48 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 7dff6b611e9..154a2c60011 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 @@ -579,6 +579,54 @@ void test_traits(const char* title) Segment_2(Point_2(50, 20), Point_2(70, 60)), CGAL::POSITIVE); + + // PSS bdiff=2 point on opposite side pssd2btw3.cin + + test_incircle( + Segment_2(Point_2(100, 250), Point_2(0, 50)), + Segment_2(Point_2(0, 50), Point_2(100, -50)), + Point_2(200, 50), + Point_2(0, 100), + CGAL::POSITIVE); + test_incircle( + Segment_2(Point_2(100, 250), Point_2(0, 50)), + Segment_2(Point_2(0, 50), Point_2(100, -50)), + Point_2(200, 50), + Point_2(0, 50), + CGAL::POSITIVE); + test_incircle( + Segment_2(Point_2(100, 250), Point_2(0, 50)), + Segment_2(Point_2(0, 50), Point_2(100, -50)), + Point_2(200, 50), + Point_2(100, -50), + CGAL::POSITIVE); + test_incircle( + Segment_2(Point_2(100, 250), Point_2(0, 50)), + Segment_2(Point_2(0, 50), Point_2(100, -50)), + Point_2(200, 50), + Point_2(100, 250), + CGAL::POSITIVE); + test_incircle( + Segment_2(Point_2(100, 250), Point_2(0, 50)), + Segment_2(Point_2(0, 50), Point_2(100, -50)), + Point_2(200, 50), + Point_2(250, 100), + CGAL::POSITIVE); + + test_incircle( + Segment_2(Point_2(100, 250), Point_2(0, 50)), + Segment_2(Point_2(0, 50), Point_2(100, -50)), + Point_2(200, 50), + Point_2(200, 100), + CGAL::ZERO); + + test_incircle( + Segment_2(Point_2(100, 250), Point_2(0, 50)), + Segment_2(Point_2(0, 50), Point_2(100, -50)), + Point_2(200, 50), + Point_2(100, 50), + CGAL::NEGATIVE); + std::cout << "====================================" << std::endl; std::cout << std::endl; }