For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings


Need to speed up your development?
Have a look at our:

Samples & Tools


Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

About using BRepAlgoAPI on OCCT 6.7.1

DY's picture

Hello, I am using BRepAlgoAPI_Common for boolean operation.
This code runs fine on OCCT version 6.5.4.

BRepAlgoAPI_Common api(solid1, solid2);



if (api.IsDone() && !api.ErrorStatus()) {
TopoDS_Shape result = api.Shape();
// ....
else {
// ...

I ported this code from OCCT 6.5.4 to 6.7.1.

I waited over of 3 hours, but the constructor of BRepAlgoAPI_Common blocks and it doesn't release the operation. Of course, Arguments solid1 and solid2 are same BRep shape in each environment. They are loaded from BRep file.

I found the case of arguments combination;

Solid x Solid => Not return from API constructor.
Face x Solid => Done.
Edge x Solid => Done.

This problem happend at only `solid by solid' arguments combination.

I tested the code on Windows XP, 7 and Debian GNU/Linux. I trying to use BOPAlgo_BOP class(is this new api?), but the operation blocked by constructor of it.

How can I change my code for boolean operation?

Thank you for reading my poor English.

Forum supervisor's picture

Dear Transom,
If you still have this problem I would suggested you to register the issue in Mantis BugTracker which is available via the Collaborative portal -
Don't forget to attach the shapes allowing to reproduce the case.
Best regards

DY's picture

Thank you for your reply.
I will join to your project and I will post the issue and BRep files to bug tracker.
I will be happy if I can be of any help.

PG's picture

could u share the BREP files in the forum for analysis

Contact us

Attention: DO NOT use this form for all kind of request for the removal of your personal data. Please follow this link for such cases.