Forum archiveIssue archiveModeling Data and Algorithms

Archived discussion

BRepAlgoAPI_BuilderAlgo vs. BRepAlgoAPI_Fuse

Modeling Data and AlgorithmsWed, 09/21/2022 - 22:193 replies

Browse this forum
QuestionAuthor

I have below questions about them:
1. Is there a way to supply a list of shapes to BRepAlgoAPI_Fuse as one can do for BRepAlgoAPI_BuilderAlgo? If yes, please provide sample code.
2. Can we also set parallel run and glue options for BRepAlgoAPI_Fuse as shown below for BRepAlgoAPI_BuilderAlgo:

BRepAlgoAPI_BuilderAlgo builder;
builder.SetArguments(listOfSolids);
builder.SetRunParallel(true);
builder.SetGlue(BOPAlgo_GlueShift);

Discussion

3 archived replies

Posts are displayed in their archived order.

01Commenter-1

Yes, you can! BRepAlgoAPI_Fuse is a descendant of BRepAlgoAPI_BuilderAlgo, and inherits all its public methods.

02Commenter-1

You are to supply Fuse algo with two lists of shapes - arguments and tools, which are passed using the methods SetArguments and SetTools.

03Author

Thanks for this one. Just setting arguments was giving too few arguments error even with several arguments in the list.