How to intersect two Shape?

How to intersect two Shape?

yanjianqing's picture

How to intersect two Shape? I do,
BRepAlgoAPI_Cut m_Cut(Box,cylinder);
TopoDS_Shape ShapeCut1 = m_Cut.Shape();
if(m_Cut.HasDeleted())
{

AfxMessageBox("Ïཻ");

} ,but is not use