using namespace boost::polygon;
polygon_data<int> poly;
std::vector<point_data<int>> points;
points.push_back(point_data<int>(10, 6));
points.push_back(point_data<int>(17, 6));
points.push_back(point_data<int>(15, 9));
points.push_back(point_data<int>(13, 6));
points.push_back(point_data<int>(20, 6));
points.push_back(point_data<int>(20, 11));
points.push_back(point_data<int>(10, 11));
set_points(poly, points.begin(), points.end());
Is there a function can decouple “poly” in boost?
I mean I expect to get a polygon with a hole.
New contributor
OOOliver is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.