]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/geometry/test/robustness/overlay/areal_areal/interior_triangles.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / geometry / test / robustness / overlay / areal_areal / interior_triangles.cpp
index f8f52f44a6b8f4a3414619217ae80788d26ef71c..5c4b093334cf00fbad90334df51273ff011c1e8d 100644 (file)
@@ -1,13 +1,16 @@
 // Boost.Geometry (aka GGL, Generic Geometry Library)
 // Robustness Test
 
-// Copyright (c) 2009-2020 Barend Gehrels, Amsterdam, the Netherlands.
+// Copyright (c) 2009-2021 Barend Gehrels, Amsterdam, the Netherlands.
 
 // Use, modification and distribution is subject to the Boost Software License,
 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
 // http://www.boost.org/LICENSE_1_0.txt)
 
 #define BOOST_GEOMETRY_NO_BOOST_TEST
+#define BOOST_GEOMETRY_TEST_ONLY_ONE_TYPE
+
+// NOTE: there is no randomness here. Count is to measure performance
 
 #include <test_overlay_p_q.hpp>
 
@@ -113,8 +116,10 @@ int main(int argc, char** argv)
             ("count_y", po::value<int>(&count_y)->default_value(10), "Triangle count in y-direction")
             ("offset", po::value<int>(&offset)->default_value(0), "Offset of second triangle in x-direction")
             ("diff", po::value<bool>(&settings.also_difference)->default_value(false), "Include testing on difference")
+#if ! defined(BOOST_GEOMETRY_TEST_ONLY_ONE_TYPE)
             ("ccw", po::value<bool>(&ccw)->default_value(false), "Counter clockwise polygons")
             ("open", po::value<bool>(&open)->default_value(false), "Open polygons")
+#endif
             ("wkt", po::value<bool>(&settings.wkt)->default_value(false), "Create a WKT of the inputs, for all tests")
             ("svg", po::value<bool>(&settings.svg)->default_value(false), "Create a SVG for all tests")
         ;
@@ -129,6 +134,7 @@ int main(int argc, char** argv)
             return 1;
         }
 
+#if ! defined(BOOST_GEOMETRY_TEST_ONLY_ONE_TYPE)
         if (ccw && open)
         {
             test_all<default_test_type, false, false>(count, count_x, count_y, offset, settings);
@@ -142,6 +148,7 @@ int main(int argc, char** argv)
             test_all<default_test_type, true, false>(count, count_x, count_y, offset, settings);
         }
         else
+#endif
         {
             test_all<default_test_type, true, true>(count, count_x, count_y, offset, settings);
         }