From: Christophe Bourcier Date: Fri, 20 Jul 2018 07:24:30 +0000 (+0200) Subject: Enable multithread in boolean operations and partition X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e04a693718da25703b92a43235076928446e4091;p=modules%2Fshaper.git Enable multithread in boolean operations and partition --- diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_Boolean.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_Boolean.cpp index 2af2e8edb..ca8263d08 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_Boolean.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_Boolean.cpp @@ -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()) diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_Partition.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_Partition.cpp index 9655931d7..b8affb1aa 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_Partition.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_Partition.cpp @@ -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())