Skip to content
Snippets Groups Projects
Commit 2fd6c56c authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[GL] Explicitly construct Polyline from pnts.

parent 9ad87dd2
No related branches found
No related tags found
No related merge requests found
...@@ -537,7 +537,7 @@ GeoLib::Polygon* createPolygonFromCircle (GeoLib::Point const& middle_pnt, doubl ...@@ -537,7 +537,7 @@ GeoLib::Polygon* createPolygonFromCircle (GeoLib::Point const& middle_pnt, doubl
} }
// create polygon // create polygon
GeoLib::Polygon* polygon (new GeoLib::Polygon (pnts, false)); GeoLib::Polygon* polygon(new GeoLib::Polygon{Polyline{pnts}, false});
for (std::size_t k(0); k < resolution; k++) for (std::size_t k(0); k < resolution; k++)
{ {
polygon->addPoint(k + off_set); polygon->addPoint(k + off_set);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment