plan

fun plan(frame: SpatialFrame, maxTriangles: Int, dataMaxZoom: Int): SpatialHeightGrid.Plan(source)

Picks a grid that stays under the triangle budget and does not sample finer than twice the data resolution (overzoomed tiles are just bilinear upsampling).