How to plot a smooth curve and attached to a surface?

Hi all,
I’m going to plot a curve that attached to a surface ( polydata) and be smooth. how can I do that?
thank you all.