Okay, I'm also confused about the types here.  I just realized top and were numbers.  What is terrain, an array of cartesians or an array of heights?