From 47bec5ba5234d6aa1d0cd784dfb2c21dc0b1f37d 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 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()) -- 2.39.2