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=a3bbfc6146bbddc7b1c4963e9373e4c295edf9a2;hpb=2551418b49d44c842102306517a770ad12b97f75;p=modules%2Fhomard.git diff --git a/src/FrontTrack/FrontTrack_Projector.cxx b/src/FrontTrack/FrontTrack_Projector.cxx index a3bbfc61..450bab6a 100644 --- a/src/FrontTrack/FrontTrack_Projector.cxx +++ b/src/FrontTrack/FrontTrack_Projector.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2017-2020 CEA/DEN, EDF R&D +// 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 @@ -463,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 ); }