Skip to content

Commit

Permalink
use parallel mode of BOPCheck class
Browse files Browse the repository at this point in the history
  • Loading branch information
mwganson authored and wwmayer committed Aug 13, 2018
1 parent ff93395 commit 99b077c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Mod/Part/Gui/TaskCheckGeometry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,7 @@ int TaskCheckGeometryResults::goBOPSingleCheck(const TopoDS_Shape& shapeIn, Resu
#endif
#if OCC_VERSION_HEX >= 0x060900
BOPCheck.SetParallelMode(true); //this doesn't help for speed right now(occt 6.9.1).
BOPCheck.SetRunParallel(true); //performance boost, use all available cores
BOPCheck.TangentMode() = true; //these 4 new tests add about 5% processing time.
BOPCheck.MergeVertexMode() = true;
BOPCheck.CurveOnSurfaceMode() = true;
Expand All @@ -616,7 +617,7 @@ int TaskCheckGeometryResults::goBOPSingleCheck(const TopoDS_Shape& shapeIn, Resu
Base::TimeInfo start_time;
#endif

BOPCheck.Perform();
BOPCheck.Perform();

#ifdef FC_DEBUG
float bopAlgoTime = Base::TimeInfo::diffTimeF(start_time,Base::TimeInfo());
Expand Down

0 comments on commit 99b077c

Please sign in to comment.