You can create 3D curves lying completely on a polygon.
Result: The curve (identified as Mesh Curve.xxx) is created.