X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModelGeomAlgo%2FModelGeomAlgo_Point2D.h;h=471c973b8100fbd0a8e70ac45684008a7fdfd8d7;hb=fc72d43b677baa05ae7fd317346fd8b723b799ed;hp=15826a20c3f37d5571224c59952099ab830a3e7e;hpb=a2ab2dc339b560c7309540e1f10b6ad60e5ed0af;p=modules%2Fshaper.git diff --git a/src/ModelGeomAlgo/ModelGeomAlgo_Point2D.h b/src/ModelGeomAlgo/ModelGeomAlgo_Point2D.h old mode 100755 new mode 100644 index 15826a20c..471c973b8 --- a/src/ModelGeomAlgo/ModelGeomAlgo_Point2D.h +++ b/src/ModelGeomAlgo/ModelGeomAlgo_Point2D.h @@ -1,8 +1,21 @@ -// Copyright (C) 2014-20xx CEA/DEN, EDF R&D - -// File: ModelGeomAlgo_Point2D.h -// Created: 20 Jul 2016 -// Author: Natalia ERMOLAEVA +// Copyright (C) 2014-2023 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 +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// 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 +// +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +// #ifndef ModelGeomAlgo_Point2D_H #define ModelGeomAlgo_Point2D_H @@ -51,7 +64,8 @@ public: /// \param isSkipFeatureAttributes a boolean value if coincidences to the feature attributes /// should be skipped /// \returns found point attribute or NULL - static MODELGEOMALGO_EXPORT void getPointsOfReference(const std::shared_ptr& theObject, + static MODELGEOMALGO_EXPORT + void getPointsOfReference(const std::shared_ptr& theObject, const std::string& theReferenceFeatureKind, std::set >& theAttributes, const std::string& theObjectFeatureKind = "", @@ -117,6 +131,14 @@ public: const std::shared_ptr& thePoint, std::shared_ptr& theProjectedPoint); + /// Finds projected point to the given shape, which does not placed on the shape boundaries + /// \param theBaseShape a shape of check + /// \param thePoint [in] a point to project + /// \param theProjectedPoint [out] a projected point + static MODELGEOMALGO_EXPORT bool isInnerPointOnEdge( + const std::shared_ptr theBaseShape, + const std::shared_ptr& thePoint, + std::shared_ptr& theProjectedPoint); #ifdef _DEBUG /// Return feature name, kind and point values united in a string info