Skip to content

Commit

Permalink
Merge pull request #328 from triplus/master
Browse files Browse the repository at this point in the history
Part multiFuse enable SetRunParallel
  • Loading branch information
wwmayer committed Nov 2, 2016
2 parents e2e73af + 3d26fec commit 1ad6d80
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Mod/Part/App/TopoShape.cpp
Expand Up @@ -1325,6 +1325,9 @@ TopoDS_Shape TopoShape::multiFuse(const std::vector<TopoDS_Shape>& shapes, Stand
}
#else
BRepAlgoAPI_Fuse mkFuse;
# if OCC_VERSION_HEX >= 0x060900
mkFuse.SetRunParallel(true);
# endif
TopTools_ListOfShape shapeArguments,shapeTools;
shapeArguments.Append(this->_Shape);
for (std::vector<TopoDS_Shape>::const_iterator it = shapes.begin(); it != shapes.end(); ++it) {
Expand Down Expand Up @@ -1410,6 +1413,7 @@ TopoDS_Shape TopoShape::generalFuse(const std::vector<TopoDS_Shape> &sOthers, St
throw Base::AttributeError("GFA is available only in OCC 6.9.0 and up.");
#else
BRepAlgoAPI_BuilderAlgo mkGFA;
mkGFA.SetRunParallel(true);
TopTools_ListOfShape GFAArguments;
GFAArguments.Append(this->_Shape);
for (const TopoDS_Shape &it: sOthers) {
Expand Down

0 comments on commit 1ad6d80

Please sign in to comment.