Is there a way to make a triangulation of this surface, but where the lines are vertical (like in the drawing)?

triangulate horizontal.gh (4.2 KB)
Hello,
I need something like this but then the vertical lines on the surface need to be straight, like this picture, but then triangulated.

if you want the mesh as well as the lines:
triangulate horizontal.gh (17.8 KB)
Thank you I can work with this!
Thanks this is also really helpful.
Do you think this might be possible if I want to make the U count higher? Because when add the value with the slider the vertical lines won’t be vertical anymore


