Skip to content
Snippets Groups Projects
Commit c7757ecb authored by Tom Fischer's avatar Tom Fischer Committed by Dmitri Naumov
Browse files

[A/IO/Gmsh] Constify methods of GMSHPolygonTree.

parent 53852495
No related branches found
No related tags found
No related merge requests found
......@@ -501,7 +501,7 @@ void GMSHPolygonTree::writeAdditionalPointData(std::size_t& pnt_id_offset,
}
void GMSHPolygonTree::getPointsFromSubPolygons(
std::vector<GeoLib::Point const*>& pnts)
std::vector<GeoLib::Point const*>& pnts) const
{
for (std::list<SimplePolygonTree*>::const_iterator it(_children.begin());
it != _children.end(); ++it)
......@@ -511,7 +511,7 @@ void GMSHPolygonTree::getPointsFromSubPolygons(
}
void GMSHPolygonTree::getStationsInsideSubPolygons(
std::vector<GeoLib::Point const*>& stations)
std::vector<GeoLib::Point const*>& stations) const
{
const std::size_t n_stations(_stations.size());
for (std::size_t k(0); k < n_stations; k++)
......
......@@ -88,8 +88,10 @@ public:
void writeAdditionalPointData(std::size_t & pnt_id_offset, std::size_t sfc_number, std::ostream& out) const;
private:
void getPointsFromSubPolygons(std::vector<GeoLib::Point const*>& pnts);
void getStationsInsideSubPolygons(std::vector<GeoLib::Point const*>& stations);
void getPointsFromSubPolygons(
std::vector<GeoLib::Point const*>& pnts) const;
void getStationsInsideSubPolygons(
std::vector<GeoLib::Point const*>& stations) const;
void checkIntersectionsSegmentExistingPolylines(
GeoLib::PolylineWithSegmentMarker* ply,
GeoLib::Polyline::SegmentIterator const& seg_it);
......
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