How to use and program a spline using C++

I am trying to use a spline with a spline mesh to take a pipe and make it follow a path (spline points). I have been searching the documentation and there are very few examples that use splines in C++. If I could get some example code to go along with it, that would be fantastic. I have seen various other people’s code but it is not updated for 4.10 or 4.11. Thanks so much for any help you can give!

Hi !

Do you manage to solve this issue? Do you mind share it here if you solve it?