Function Calculate-Lod

Part of:

package terrain
( calculate-lod < terrain-node > < gx0 > < gx1 > < gy0 > < gy1 > )
Recursively walk through the terrain nodes in the master grid
in the rectangle gx0,gy0 -> gx1,gy1, checking if they're visible.
Calculates desired level-of-detail on visible patches,
calls setup-invisible on invisible ones.