diff --git a/methods/Method_D.cpp b/methods/Method_D.cpp index 3017911b200f66c2d37689ef10420acb3007982a..58ebd367ef6db7132c35b9b00c0dfd5cfc3b4d63 100644 --- a/methods/Method_D.cpp +++ b/methods/Method_D.cpp @@ -491,6 +491,19 @@ std::string polygon_to_string(const polygon_2d & polygon) polygon_str.append(std::to_string(y)); polygon_str.append("), "); } + for(auto ring: boost::geometry::interior_rings(polygon) ) + { + for(auto point: ring ) + { + double x = boost::geometry::get<0>(point); + double y = boost::geometry::get<1>(point); + polygon_str.append("("); + polygon_str.append(std::to_string(x)); + polygon_str.append(", "); + polygon_str.append(std::to_string(y)); + polygon_str.append("), "); + } + } polygon_str.pop_back(); polygon_str.pop_back(); //remove last komma polygon_str.append("))"); return polygon_str;