How to get the intersection points of two 3D Curves by using GeomAPI_ExtremaCurveCurve

Hello everyone,

It is said in the forum that we can get the intersection points of two 3D Curves by using GeomAPI_ExtremaCurveCurve.

However, I don't know how to do it.

Could any body give me a sample code.

What's more, It is said in the Documentation that an intersection point is not an extremum unless the two curves are tangential at this point.

Do you notice this sentence?

Thank you in advance!

StefanKunze's picture

Take look to BRepExtrema_ExtCC - the points where the distance is close to your tolerance Value i.E. 0.001 - the curves intersect. You can search for BRepExtrema in the forum to get some examples.