selectTerrain

function selectTerrain
terrainSelect.ts:513
selectTerrain(eye: TerrainEye, options: TerrainSelectOptions) → TerrainSelection

Walk the quadtree and return the patches to draw.

Breadth-first by level, which is what makes maxPatches graceful: a budget that will not stretch to the next level leaves the frontier where it is, so the whole disk degrades by one level together rather than the last cube face visited losing all of its detail. It is also what makes the result order-independent — the output is a function of the eye and the body, and generating a different patch first cannot change it.

eyeTerrainEye
Undocumented
optionsTerrainSelectOptions
Undocumented