From e04a693718da25703b92a43235076928446e4091 Mon Sep 17 00:00:00 2001 From: Christophe Bourcier Date: Fri, 20 Jul 2018 09:24:30 +0200 Subject: [PATCH] Enable multithread in boolean operations and partition --- src/GeomAlgoAPI/GeomAlgoAPI_Boolean.cpp | 4 ++++ src/GeomAlgoAPI/GeomAlgoAPI_Partition.cpp | 4 ++++ 2 files changed, 8 insertions(+) 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()) -- 2.39.2