DiscussionsIssue archiveModeling Data and Algorithms

Archived discussion

Shape is broken by BRepAlgoAPI_Cut

Modeling Data and AlgorithmsFri, 07/22/2022 - 13:126 replies

Browse this forum
QuestionAuthor

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();
shape3 = cut.Shape();

[Environment]

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

Archived image: Image

Best regards.

Discussion

6 archived replies

Posts are displayed in their archived order.

01Commenter-1

Check please both arguments by BRepAlgoAPI_Check function.

02Author

Hello Commenter-1.
Thank you for your reply.
I have a question about BRepAlgoAPI_Check class.
What is the difference between BRepAlgoAPI_Check and BRepCheck_Analyzer?
BRepAlgoAPI_Check took longer to process, sometimes several seconds longer than BRepCheck_Analyzer.

03Commenter-1

Hello Author,
As I remember, BRepAlgoAPI_Check calls BRepCheck_Analyzer and does some additional checks. It can be checked if you look into sources. Finally, I think BRepAlgoAPI_Check is most wide checker for validity. Also, it has some flags to skip some checks.

04Author

Hello Commenter-1,
Thank you for your information.
I checked occt sources and understand BRepAlgoAPI_Check processing flow.
As you say, BRepAlgoAPI_Check calls BRepCheck_Analyzer and does some additional checks.

05Commenter-1

As I understand, your cone is invalid by checking. And even also visually this cone is currupted.

06Commenter-2

To predict something useful from the datasets, we need to implement machine learning algorithms.

Since, there are many types of algorithms like SVM Algorithm in Python, Bayes, Regression, etc.