I don't know; it's not an easy problem to solve, and it's a lot more complex when the terrain is procedurally generated. It's usually a good idea to just choose a few projections that are appropriate for the scene you are rendering (either of the side or plan projections, or a projection from an arbitrary viewpoint using an attached camera). That is already possible.
Matt