BRepAlgoAPI_Cut::Build function is failed

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.

Thomas Anderson's picture

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

Keito Okajima's picture

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