]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Enable multithread in boolean operations and partition
authorChristophe Bourcier <christophe.bourcier@cea.fr>
Fri, 20 Jul 2018 07:24:30 +0000 (09:24 +0200)
committermpv <mpv@opencascade.com>
Thu, 7 Mar 2019 07:46:57 +0000 (10:46 +0300)
src/GeomAlgoAPI/GeomAlgoAPI_Boolean.cpp
src/GeomAlgoAPI/GeomAlgoAPI_Partition.cpp

index bb2d2815d4d99efcc0cd3d73402aabe9809ed8bd..ef984332f823f9cad0e540b12a71108f0ed2d9cb 100644 (file)
@@ -106,6 +106,10 @@ void GeomAlgoAPI_Boolean::build(const ListOfShape& theObjects,
   aBuilder->SetArguments(anObjects);
   aBuilder->SetTools(aTools);
 
+  // Set parallel processing mode (default is false)
+  Standard_Boolean bRunParallel = Standard_True;
+  aBuilder->SetRunParallel(bRunParallel);
+
   // Building and getting result.
   aBuilder->Perform();
   if (aBuilder->HasErrors())
index 14d5f5593a26b299796afb8b9729c66d9616fc2d..3d31360f8c175433ac3b9d9bd7162f68fd7ca178 100644 (file)
@@ -196,6 +196,10 @@ void GeomAlgoAPI_Partition::build(const ListOfShape& theObjects,
     }
   }
 
+  // Set parallel processing mode (default is false)
+  Standard_Boolean bRunParallel = Standard_True;
+  anOperation->SetRunParallel(bRunParallel);
+
   // Building and getting result.
   anOperation->Perform();
   if (anOperation->HasErrors())