Mapping a texture to a curved surface

OK. FlowAlongSrf to work correctly requires the input to meet certain criteria, one of which is that the reference surfaces have the same U and V direction (check with _Dir), and that they are not trimmed. So, this is wrong:

Should be more like this with the same U, V, and normal: