Enable multithread in Partition (works with or without TBB)

This commit is contained in:
Christophe Bourcier 2018-08-02 11:08:23 +02:00
parent 1be0dcd9a7
commit a68738994f

View File

@ -309,6 +309,11 @@ Standard_Integer GEOMImpl_PartitionDriver::Execute(Handle(TFunction_Logbook)& lo
PS.SetLimitMode(aCI.GetKeepNonlimitShapes()); PS.SetLimitMode(aCI.GetKeepNonlimitShapes());
PS.SetLimit((TopAbs_ShapeEnum)aCI.GetLimit()); PS.SetLimit((TopAbs_ShapeEnum)aCI.GetLimit());
// Set parallel processing mode (default is false)
Standard_Boolean bRunParallel = Standard_True;
PS.SetRunParallel(bRunParallel);
PS.Perform(); PS.Perform();
//skl PS.Compute(); //skl PS.Compute();