Skip to content
Snippets Groups Projects
Commit a57b4268 authored by Tom Fischer's avatar Tom Fischer
Browse files

[GL] Polyline: Rm unused function updatePointIDs().

parent 1a022d92
No related branches found
No related tags found
No related merge requests found
...@@ -441,30 +441,6 @@ Location Polyline::getLocationOfPoint (std::size_t k, GeoLib::Point const & pnt) ...@@ -441,30 +441,6 @@ Location Polyline::getLocationOfPoint (std::size_t k, GeoLib::Point const & pnt)
return Location::BETWEEN; return Location::BETWEEN;
} }
void Polyline::updatePointIDs(const std::vector<std::size_t> &pnt_ids)
{
for (auto it = this->_ply_pnt_ids.begin(); it!=this->_ply_pnt_ids.end();)
{
if (pnt_ids[*it] != *it)
{
if (it != this->_ply_pnt_ids.begin() &&
(pnt_ids[*it] == pnt_ids[*(it - 1)]))
{
it = this->_ply_pnt_ids.erase(it);
}
else
{
*it = pnt_ids[*it];
++it;
}
}
else
{
++it;
}
}
}
double Polyline::getDistanceAlongPolyline(const MathLib::Point3d& pnt, double Polyline::getDistanceAlongPolyline(const MathLib::Point3d& pnt,
const double epsilon_radius) const const double epsilon_radius) const
{ {
......
...@@ -143,9 +143,6 @@ public: ...@@ -143,9 +143,6 @@ public:
*/ */
void closePolyline(); void closePolyline();
/// Update a the PointIDs vector based on given map, e.g. after the corresponding PointVec has changed
void updatePointIDs(const std::vector<std::size_t> &pnt_ids);
/// Constructs one polyline from a vector of connected polylines. /// Constructs one polyline from a vector of connected polylines.
/// All polylines in this vector need to reference the same point vector. /// All polylines in this vector need to reference the same point vector.
static Polyline* constructPolylineFromSegments(const std::vector<Polyline*> &ply_vec, static Polyline* constructPolylineFromSegments(const std::vector<Polyline*> &ply_vec,
......
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