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

[GL] Cleanup: Removed unused method PointVec::getSubset.

# Conflicts:
#	GeoLib/PointVec.cpp
#	GeoLib/PointVec.h
parent 75018e53
No related branches found
No related tags found
No related merge requests found
...@@ -207,14 +207,4 @@ void PointVec::correctNameIDMapping() ...@@ -207,14 +207,4 @@ void PointVec::correctNameIDMapping()
} }
} }
std::vector<GeoLib::Point*>* PointVec::getSubset(const std::vector<std::size_t> &subset) const
{
std::vector<GeoLib::Point*> *new_points (new std::vector<GeoLib::Point*>(subset.size()));
const std::size_t nPoints(subset.size());
for (std::size_t i = 0; i < nPoints; i++)
(*new_points)[i] = new GeoLib::Point(*(*this->_data_vec)[subset[i]]);
return new_points;
}
} // end namespace } // end namespace
...@@ -100,9 +100,6 @@ public: ...@@ -100,9 +100,6 @@ public:
const GeoLib::AABB<GeoLib::Point>& getAABB () const; const GeoLib::AABB<GeoLib::Point>& getAABB () const;
/// Returns a subset of this point vector containing only the points specified in "subset"
std::vector<GeoLib::Point*>* getSubset(const std::vector<std::size_t> &subset) const;
private: private:
/** /**
* Removes points out of the given point set that have the (nearly) same coordinates, i.e. * Removes points out of the given point set that have the (nearly) same coordinates, i.e.
......
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