BRepAlgoAPI_Cut is not working properly

Hello,

I want to get a model that eliminates shape2 from shape1.

However, the following program will break the shape.

Is there any good solution?

[Code]

BRepAlgoAPI_Cut cut( shape1, shape2 );
cut.Build();

[Environment]

Opencascade: V7.4.0
OS: Windows 10 Pro 64bit
CPU: Intel(R) Core(TM) i7-8550U
Memory: 16GB
Keito Okajima's picture

I forgot to attach an image, so I will add it.

Best regards.

Attachments: 
Thomas Anderson's picture

You have crazy high tolerances on an edge and it's vertices on shape1.

Attachments: 
Keito Okajima's picture

Hello Thomas.

Thanks for the information.

Is there any way to set the tolerance when getting the cut shape?

Best regards.

Thomas Anderson's picture

I don't think so. You can set the fuzzy value on boolean operations, but I would be surprised if that helped. I am guessing it was another boolean operation that introduced the high tolerances? If that is the case, you should see if the arguments can be augmented to avoid geometric coincidences between them. Good luck.