]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/geometry/test/algorithms/buffer/buffer_piece_border.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / geometry / test / algorithms / buffer / buffer_piece_border.cpp
index fd0e8f72d1168be9aa9426a178775dfa1d3814dc..62263a4b03feabeaeeb9a62db0c41fa504aad86a 100644 (file)
@@ -3,8 +3,8 @@
 
 // Copyright (c) 2020 Barend Gehrels, Amsterdam, the Netherlands.
 
-// This file was modified by Oracle on 2020.
-// Modifications copyright (c) 2020 Oracle and/or its affiliates.
+// This file was modified by Oracle on 2020-2022.
+// Modifications copyright (c) 2020-2022 Oracle and/or its affiliates.
 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
 
 // Use, modification and distribution is subject to the Boost Software License,
@@ -103,10 +103,11 @@ Border setup_piece_border(Ring& ring, Ring& original,
 
     typedef typename bg::point_type<Ring>::type point_type;
 
-    border.get_properties_of_border(false, point_type());
+    bg::strategies::buffer::cartesian<> strategy;
 
-    bg::strategy::side::side_by_triangle<> side_strategy;
-    border.get_properties_of_offsetted_ring_part(side_strategy);
+    border.get_properties_of_border(false, point_type(), strategy);
+
+    border.get_properties_of_offsetted_ring_part(strategy);
 
     return border;
 }
@@ -154,10 +155,11 @@ template <typename Point, typename Border, typename Mapper>
 void test_point(std::string const& wkt, bool expected, Border const& border,
                 Mapper& mapper, std::string const& color)
 {
+    bg::strategies::buffer::cartesian<> strategy;
     typename Border::state_type state;
     Point point;
     bg::read_wkt(wkt, point);
-    border.point_on_piece(point, false, false, state);
+    border.point_on_piece(point, strategy, false, false, state);
     bool const on_piece = state.code() == 1;
     BOOST_CHECK_MESSAGE(on_piece == expected,
                         " expected: " << expected