]> OCCT Git - occt-copy.git/commitdiff
Projection algorithm changed to Tree in ShapeAnalysis_Surface CR26166_1
authorDamir Bogrov <damir.bogrov@cadexchanger.com>
Tue, 5 May 2015 10:13:36 +0000 (13:13 +0300)
committerDamir Bogrov <damir.bogrov@cadexchanger.com>
Tue, 5 May 2015 10:13:36 +0000 (13:13 +0300)
src/Extrema/Extrema_GenExtPS.cxx
src/ShapeAnalysis/ShapeAnalysis_Surface.cxx

index 1130aae1396828994e08c1f41c6e71ab7ee79396..97cf856d3f3dd6b0a824c638f5f19e9f1ad4c82b 100644 (file)
@@ -219,7 +219,7 @@ Extrema_GenExtPS::Extrema_GenExtPS()
   myDone = Standard_False;
   myInit = Standard_False;
   myFlag = Extrema_ExtFlag_MINMAX;
-  myAlgo = Extrema_ExtAlgo_Tree;
+  myAlgo = Extrema_ExtAlgo_Grad;
 }
 
 
index 1b9877676bf56e899152ec01e41b7669b64d020f..2f85d094ea0632c39d940283f46f65762d584d4c 100644 (file)
@@ -1039,6 +1039,7 @@ gp_Pnt2d ShapeAnalysis_Surface::ValueOfUV(const gp_Pnt& P3D,const Standard_Real
        myExtPS.Initialize ( myExtSrf, uf-du, ul+du, vf-dv, vl+dv, Tol, Tol );
        myExtOK = Standard_True;
       }
+      myExtPS.SetAlgo ( Extrema_ExtAlgo_Tree );
       myExtPS.Perform ( P3D );
       Standard_Integer nPSurf = ( myExtPS.IsDone() ? myExtPS.NbExt() : 0 );