]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Enable multithread in boolean operations and partition cbr/enable_multithread_in_boolean_operations_and_partition
authorChristophe Bourcier <christophe.bourcier@cea.fr>
Fri, 20 Jul 2018 07:24:30 +0000 (09:24 +0200)
committerChristophe Bourcier <christophe.bourcier@cea.fr>
Fri, 20 Jul 2018 07:24:30 +0000 (09:24 +0200)
src/GeomAlgoAPI/GeomAlgoAPI_Boolean.cpp
src/GeomAlgoAPI/GeomAlgoAPI_Partition.cpp

index 2af2e8edb0841920fd95f9ad3c6312bf915a283a..ca8263d081e76a3a8c0873cca04e47fce359cf52 100644 (file)
@@ -84,6 +84,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 9655931d771ab170d3cd31c18ca5728114a9b08b..b8affb1aad6e34ff740fb6221c5aef9e7fbc616a 100644 (file)
@@ -148,6 +148,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())