How to calculate IntBuffer?

Then what is a flat terrain system ?
I’m a bit confused right now

Edit: or do you mean something like