Strange Spline mesh transformation

Hey! When I extrude my mesh along a spline, in sharp edges, this is the result

As you might expect, the railing should be transformed the same way as the wall itself. This wall is just one obj file, generated with blender.

What can I do, to change the result to what I want? Sorry, for my bad expression, english isnt my native language. Greetings!

more vertical cuts along the wall should do the trick…

Agreed! The wall needs more geometry to work with otherwise you won’t see the smooth run along the spline.