Salome HOME
Copyright update 2022
[modules/homard.git] / src / FrontTrack / FrontTrack_Projector.hxx
old mode 100755 (executable)
new mode 100644 (file)
index f7b0aa7..f6a9eff
@@ -1,3 +1,21 @@
+// Copyright (C) 2017-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
+// 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.hxx
 // Created   : Wed Apr 26 20:12:13 2017
 // Author    : Edward AGAPOV (eap)
@@ -40,6 +58,12 @@ public:
   // return true if projection is not needed
   bool isPlanarBoundary() const;
 
+
+  // switch a mode of usage of prevSolution.
+  // If projection fails, to try to project without usage of prevSolution.
+  // By default this mode is off
+  void tryWithoutPrevSolution( bool toTry ) { _tryWOPrevSolution = toTry; }
+
   // project a point to the boundary shape
   bool project( const gp_Pnt& point,
                 const double  maxDist2,
@@ -65,6 +89,7 @@ private:
   FT_RealProjector* _realProjector;
   Bnd_Box           _bndBox;
   TopoDS_Shape      _shape;
+  bool              _tryWOPrevSolution;
 };
 
 #endif