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?
Archived discussion
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
Posts are displayed in their archived order.
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?
Hi, I have made a test with BRepAlgoAPI_Section and BRepAlgo_Section: Test
Dear Guido van Hilst,
Thank you for the support. I'll verify my coding with your advice.
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.
use class BOPAlgo_Splitter,the shell split the cylinder,you can get the face of a solid.
Dear liuhuiwei,
I'll try it out, Thanks a lot.