X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FFrontTrack%2FFrontTrack_Projector.cxx;h=450bab6a75cb1dbc1bb125d87b34d7f9dab1892c;hb=refs%2Ftags%2FV9_13_0b1;hp=efc18779f786a79876c291c83b451d21c12a5b7c;hpb=268a8e27a2bfa2ada7ae95c7a45e3574293e9b9a;p=modules%2Fhomard.git diff --git a/src/FrontTrack/FrontTrack_Projector.cxx b/src/FrontTrack/FrontTrack_Projector.cxx old mode 100755 new mode 100644 index efc18779..450bab6a --- a/src/FrontTrack/FrontTrack_Projector.cxx +++ b/src/FrontTrack/FrontTrack_Projector.cxx @@ -1,3 +1,21 @@ +// Copyright (C) 2017-2024 CEA, EDF +// +// 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 +// // File : FrontTrack_Projector.cxx // Created : Wed Apr 26 20:33:55 2017 // Author : Edward AGAPOV (eap) @@ -445,6 +463,7 @@ namespace // actual projection algorithms newSolution[0], newSolution[1]); projection = ElSLib::CylinderValue( newSolution[0], newSolution[1], _cylinder.Position(), _cylinder.Radius() ); + _dist = point.Distance( projection ); return ( _dist * _dist < maxDist2 ) && SurfaceProjector::classify( newSolution ); }