X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAlgoAPI%2FGeomAlgoAPI_PointBuilder.h;h=4cd9be262039ae5a8ade652415d8843826a61b08;hb=7ad94f3cf928e9abe353fe20fa1becfe2574b857;hp=50e478752be06c4bc527332569d746fc6ab0496b;hpb=87b6a30a3afb8fb32e7e43ade8d9c947d9eb1684;p=modules%2Fshaper.git diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_PointBuilder.h b/src/GeomAlgoAPI/GeomAlgoAPI_PointBuilder.h index 50e478752..4cd9be262 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_PointBuilder.h +++ b/src/GeomAlgoAPI/GeomAlgoAPI_PointBuilder.h @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2017 CEA/DEN, EDF R&D +// Copyright (C) 2014-2022 CEA/DEN, EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -12,10 +12,9 @@ // // You should have received a copy of the GNU Lesser General Public // License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// See http://www.salome-platform.org/ or -// email : webmaster.salome@opencascade.com +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // #ifndef GeomAlgoAPI_PointBuilder_H_ @@ -56,13 +55,21 @@ public: const bool theIsPercent = false, const bool theIsReverse = false); + /// \brief Creates vertex by projection another vertex on edge. + /// \param[in] theVertex vertex to project. + /// \param[in] theEdge edge for projection. + /// \return created vertex. + static std::shared_ptr + vertexByProjection(const std::shared_ptr theVertex, + const std::shared_ptr theEdge); + /// \brief Creates vertex by projection another vertex on plane. /// \param[in] theVertex vertex to project. - /// \param[in] thePlane face for projection. Should be planar. + /// \param[in] theFace face for projection. Should be planar. /// \return created vertex. static std::shared_ptr vertexByProjection(const std::shared_ptr theVertex, - const std::shared_ptr thePlane); + const std::shared_ptr theFace); /// \brief Creates vertex by intersection two coplanar lines. /// \param[in] theEdge1 first linear edge. @@ -72,14 +79,6 @@ public: vertexByIntersection(const std::shared_ptr theEdge1, const std::shared_ptr theEdge2); - /// \brief Creates vertex by intersection line and plane. - /// \param[in] theEdge linear edge. - /// \param[in] theFace planar face. - /// \return created vertex. - static std::shared_ptr - vertexByIntersection(const std::shared_ptr theEdge, - const std::shared_ptr theFace); - /// Return point by shape vertex static std::shared_ptr point(const std::shared_ptr theVertex); };