]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
FIx for the issue #2399 : optimization of the Intersection feature results (better...
authormpv <mpv@opencascade.com>
Thu, 11 Jan 2018 11:59:30 +0000 (14:59 +0300)
committermpv <mpv@opencascade.com>
Thu, 11 Jan 2018 11:59:30 +0000 (14:59 +0300)
src/GeomAlgoAPI/GeomAlgoAPI_Intersection.cpp

index b458cddf54ac7933792dbd85d7571b64beb6ad80..8cf31feba39aece75bf243ac508ddc31aa852b28 100644 (file)
@@ -70,7 +70,10 @@ void GeomAlgoAPI_Intersection::build(const ListOfShape& theObjects,
     }
   }
   anOperation->SetTools(aTools);
-
+  // optimization for the issue #2399
+  anOperation->Approximation(Standard_True);
+  anOperation->ComputePCurveOn1(Standard_True);
+  anOperation->ComputePCurveOn2(Standard_True);
   // Building and getting result.
   anOperation->Build();
   if(!anOperation->IsDone()) {