how to create curve2d

Hello everyone, I use the mouse click and step model to produce the intersection point, and then use the GeomAPI_PointsToBSpline function, forming an approximation curve. Then Project the curve to the surface by using Handle (Geom) projectedCurve = GeomProjLib: : Project (curve, surface) ; . How Do I turn this curve into a curve2d curve of type curveonsurface

tsunghung tsai's picture

have a look in same class GeomProjLib has method GeomProjLib::Curve2d,
Doesn't this achieve your goal?