How do I generate a topographic map from a terrain collider?

I’m making a plugin for Kerbal Space Program and want to have a picture-in-picture showing the terrain directly below you, but not as a mesh. I want actual topographic elevation lines.

I’m using C# but I’m not looking for code, just what methods I should research, maybe some helpful documentation.

I don’t know if you allready mangaed to solve this,
but I think I would try to get an elevation map by analysing the heights array of TerrainData.
Going through the arry linear by height and searching for the points having current loop height should give you the correct location x/z for the point of that height.

Happy Coding :wink: