Salome HOME
Enable multithread in boolean operations and partition
[modules/shaper.git] / src / GeomAlgoAPI / GeomAlgoAPI_Boolean.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())