Forum archiveIssue archiveModeling Data and Algorithms

Archived discussion

Bug in BRepAlgoAPI_Common

Modeling Data and AlgorithmsThu, 04/25/2019 - 10:056 replies

Browse this forum
QuestionAuthor

Hi everyone,

          I'm trying to find the collision of 2 parts using "boolean common"  operation (BRepAlgoAPI_Common). The parts are colliding with each other, but I can't get the common parts between those parts. I tested the parts in both Test Harness & C++ coding, both give incorrect results.

           I've attached STEP files and error image for your kind reference

  

Discussion

6 archived replies

Posts are displayed in their archived order.

01Commenter-1

Using BRepAlgoAPI_Common,two shape should have same shape type,for example,two solid.

For your files,you can use BRepAlgoAPI_Section to get the interection lines, I've attached the BRepAlgoAPI_Section result,is that you expect?

02Commenter-2

Hi, I have made a test with BRepAlgoAPI_Section and BRepAlgo_Section: Test

03Author

Dear Guido van Hilst,

      Thank you for the support. I'll verify my coding with your advice. 

04Author

Dear Guido van Hilst,

         Now, I got the intersecting curves at both shapes, but those are not enough to form a face or shape. Is there is an idea to form a face or shape with disconnected curves? Thank you for your support. I've attached images, STEP file for your kind reference.

05Commenter-1

use class BOPAlgo_Splitter,the shell split the cylinder,you can get the face of a solid.

06Author

Dear liuhuiwei,

          I'll try it out, Thanks a lot.