DiscussionsIssue archiveModeling Data and Algorithms

Archived discussion

BRepAlgoAPI_Fuse causes shape corruption

Modeling Data and AlgorithmsThu, 08/04/2022 - 10:214 replies

Browse this forum
QuestionAuthor

Hello. When I try to fuse shape1 and shape2, the result shape is corrupted. Is there something wrong with the input shape?

[Code]

BRepAlgoAPI_Fuse fuseShape( shape1, shape2 );
fuseShape.Build();
BRepAlgoAPI_Check analyzer;
analyzer.SetData( fuseShape.Shape() );
analyzer.Perform();
analyzer.isValid(); // <- Standard_False

[Environment]

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

Discussion

4 archived replies

Posts are displayed in their archived order.

01Commenter-1

Did you check arguments before apply boolean operation?

02Author

Hello Commenter-1.
Thank you for your reply.
When I checked arguments by following code, result was all OK.

[code]
BRepAlgoAPI_Check analyzer;
analyzer.SetData( shape1 );
analyzer.Perform();
analyzer.IsValid(); // <- Standard_True

analyzer.SetData( shape2 );
analyzer.Perform();
analyzer.IsValid(); // <- Standard_True

analyzer.SetData( shape1, shape2, BOPAlgo_FUSE );
analyzer.Perform();
analyzer.IsValid(); // <- Standard_True

03Commenter-1

Okey, I will try to look at your geometry.

04Commenter-2

Hi Commenter-1:
when I used BRepAlgoAPI_Fuse with two boxs,I get wrong result!