Salome HOME
23507: Nodes can't be projected to a CAD
[modules/homard.git] / src / FrontTrack / FrontTrack_Projector.hxx
index f7b0aa766a04663e97e6f499dbde841b6119a6d2..7420eaa3870f21e2e89f028e7326e99d8f4ef973 100755 (executable)
@@ -40,6 +40,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 +71,7 @@ private:
   FT_RealProjector* _realProjector;
   Bnd_Box           _bndBox;
   TopoDS_Shape      _shape;
+  bool              _tryWOPrevSolution;
 };
 
 #endif