diff --git a/GeoLib/Surface.cpp b/GeoLib/Surface.cpp index 434fb4d3201f504a96daace21919c70e8bd4707d..cf8e002b80483d04f02b5c2773c53afad40756a0 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 69be788ef9c9a57f839a28ae412fe0d21e91d572..a6b34763eafb62264bb8f26cfb4795da9ae5121d 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