Rotating a curve based on surface elevation

I always get a laugh from threads that start like that. :rofl:

3. Attach minimal versions of all the relevant files