DiscussionsIssue archiveModeling Data and Algorithms

Archived discussion

BRepAlgoAPI_Cut::Build function is failed

Modeling Data and AlgorithmsThu, 07/14/2022 - 12:132 replies

Browse this forum
QuestionAuthor

Hello, I want to get a model that eliminates shape2 from shape1. However, the following program returns an error. Does anyone know what the problem is?

[Code]

BRepAlgoAPI_Cut cut( shape1, shape2 );
cut.Build();
cut.isDone(); // <- Standard_False

[Environment]

Opencascade: V7.5.3
OS: Windows 10 Pro 64bit
CPU: Intel(R) Core(TM) i7-8550U
Memory: 16GB

Best regards.

Discussion

2 archived replies

Posts are displayed in their archived order.

01Commenter-1

shape2 is a compsolid and compsolids are not supported for boolean operations.
Users guide

02Author

Hello Thomas.
Thanks for the information.
I was able to get the cut shape by breaking down the Compound shape into Solid.