From: Christophe Bourcier Date: Fri, 20 Jul 2018 07:24:30 +0000 (+0200) Subject: Enable multithread in boolean operations and partition X-Git-Tag: V9_3_0b1~7^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=47bec5ba5234d6aa1d0cd784dfb2c21dc0b1f37d;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 bb2d2815d..ef984332f 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_Boolean.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_Boolean.cpp @@ -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()) diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_Partition.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_Partition.cpp index 14d5f5593..3d31360f8 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_Partition.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_Partition.cpp @@ -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())