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