#include <list>
#include <vector>
#include <CGAL/basic.h>
#include <CGAL/Arr_batched_point_location.h>
#include "arr_inexact_construction_segments.h"
#include "point_location_utils.h"
using Query_result = std::pair<Point, Point_location_result::Type>;
int main() {
Arrangement arr;
construct_segments_arr(arr);
std::vector<Point> points = {
Point(1, 4), Point(4, 3), Point(6, 3), Point(3, 2), Point(5, 2), Point(1, 0)
};
std::list<Query_result> results;
CGAL::locate(arr, points.begin(), points.end(), std::back_inserter(results));
for (auto it = results.begin(); it != results.end(); ++it)
print_point_location<Arrangement>(it->first, it->second);
return 0;
}
OutputIterator locate(const Arrangement_2< Traits, Dcel > &arr, InputIterator begin, InputIterator end, OutputIterator oi)
performs a batched point-location operation on a given arrangement.
A unary metafunction to determine the return type of a point-location or vertical ray-shoot query.
Definition: Arr_point_location_result.h:20