Bending the curve flow to avoid obstacles but maintain the structure on the complex surface

Dear friends,
This post is a bit continuing previous post: Curve Orientation. But in here, I am trying to bend the curve generated from a complex surface, which it was previously made and relaxed, to avoid the columns obstacles. Show as the picture here

I got stopped by re-organizing and maintain the flow of the original (65.4 KB)