
Fri, 04/29/2022 - 13:49
Forums:
Hi, Bros. I have two TopoDS_Shape, one is B spline surface, another is cylinder surface, I would like to get the intersecting contour of the two face, I try to do this with Boolean Operations, I 'm new in OCCT, I have no idea which tool in OCCT can accomplish it.
Fri, 04/29/2022 - 14:17
BRepAlgoAPI_Section is the proper tool for this.
Fri, 04/29/2022 - 18:49
Thanks for your suggestion, I try to use BRepAlgoAPI_Section and BRepAlgoAPI_Common, and all the result TopoDS_Shape is TopAbs_COMPOUND, however, I thought the intersecting contour between B Spline surface and cylinder maybe a curve, actually maybe a B Spline curve. I don't find the way to get the curve from the result TopAbs_COMPOUND.
Am'I wrong?
Sat, 04/30/2022 - 11:38
I think maybe I figure it out, I use TopoDS_Iterator to the result TopAbs_COMPOUND, and get the TopAbs_EDGE which contain the GeomAbs_BSplineCurve.
Now I try to find a tool to judge is the two GeomAbs_BSplineCurves are equal or not, to make sure the GeomAbs_BSplineCurve is the right curve i want.