This scheme works great when dealing with this type of curve, but the problems start when I need to deform the curve in different ways. So the question is that I need to make the ends of the curve smooth with any deformation
I set the thickness of the curve with this curve