Please help me fix the error in smoothing out bends. In sharp turns, parallel curves become very curved.

What is a parallel path/curve? Could you show an example of the input and output curve?

Make sure to format your code pastes between three ticks ```