How to get the curve between two points on the BSpline surface

Hi Bros, I get a BSpline surface and two point on the surface.
I try to get the curve between the two point.
I the uv, maybe it call pcurve?
I also see some material about how to create pcurve, I did't succeed.
And the curve I want is in 3D space.
Maybe create a plane and use BRepAlgoAPI_Section can get the curve I want, however, it may cost too much.