How to add object at positon from an exists object?

Hi.

Is there any way to create CurveObject on the mesh surface after I move the surface away from the origin?

I want the pink curve created at the sky blue position.

Here is my code.

    // my sky surface
    CRhinoMeshObject* errorMeshObj = RhinoApp().ActiveDoc()->AddMeshObject(*m_ErrorMesh);

    // my pink curve
    CRhinoCurveObject* errorCurve3dObj = RhinoApp().ActiveDoc()->AddCurveObject(ON_PolylineCurve(m_TransferedToolPaths[i]->ToRhinoPoints(SP_Surface)));