From 8c8eb96962e9a8c389347a64d0b485d9db235442 Mon Sep 17 00:00:00 2001 From: Dmitri Naumov <dmitri.naumov@ufz.de> Date: Wed, 27 Nov 2019 14:22:30 +0100 Subject: [PATCH] [GL] Remove unused Surface::findTriangle() --- GeoLib/Surface.cpp | 13 ------------- GeoLib/Surface.h | 8 -------- 2 files changed, 21 deletions(-) diff --git a/GeoLib/Surface.cpp b/GeoLib/Surface.cpp index 434fb4d3201..cf8e002b804 100644 --- a/GeoLib/Surface.cpp +++ b/GeoLib/Surface.cpp @@ -108,17 +108,4 @@ bool Surface::isPntInSfc(MathLib::Point3d const& pnt, double eps) const } return _surface_grid->isPointInSurface(pnt, eps); } - -const Triangle* Surface::findTriangle(MathLib::Point3d const& pnt) const -{ - for (auto _sfc_triangle : _sfc_triangles) - { - if (_sfc_triangle->containsPoint(pnt)) - { - return _sfc_triangle; - } - } - return nullptr; -} - } // namespace GeoLib diff --git a/GeoLib/Surface.h b/GeoLib/Surface.h index 69be788ef9c..a6b34763eaf 100644 --- a/GeoLib/Surface.h +++ b/GeoLib/Surface.h @@ -71,14 +71,6 @@ public: */ bool isPntInSfc(MathLib::Point3d const& pnt, double eps) const; - /** - * find a triangle in which the given point is located - * @param pnt the point - * @return a pointer to a triangle. nullptr is returned if the point is not - * contained in the surface - */ - const Triangle* findTriangle(MathLib::Point3d const& pnt) const; - const std::vector<Point*>* getPointVec() const { return &_sfc_pnts; } /** * method allows access to the internal axis aligned bounding box -- GitLab