Bug in BRepAlgoAPI_Common

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

  

liuhuiwei's picture

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?

Attachments: 
Guido van Hilst not specified's picture

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

VINOTHKUMAR THANGAVEL's picture

Dear Guido van Hilst,

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

VINOTHKUMAR THANGAVEL's picture

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.

liuhuiwei's picture

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

Attachments: 
VINOTHKUMAR THANGAVEL's picture

Dear liuhuiwei,

          I'll try it out, Thanks a lot.