Builds the conservative per-cell bands from per-sample floors and tops.
World x of the grid's first corner.
World z of the grid's first corner.
Cell size, metres.
Samples per side (cells per side + 1).
Floor at each sample (row-major, n × n); NaN where unusable.
Top at each sample; NaN where unusable.
Thinnest usable band.
ReadonlycellCell size, metres.
ReadonlycellsCells per side.
ReadonlyfloorPer-cell floor (row-major, z then x). NaN = obstacle.
ReadonlytopPer-cell top.
Readonlyx0World x of the grid's first corner.
Readonlyz0World z of the grid's first corner.
A usable band sampled on a small square grid (e.g. riverbed and water surface around a school's home). Conservative: each cell's floor is the highest of its four corners, its top the lowest, and a cell is usable only if all four corners are and the band is at least
minThicknessthick. Outside the grid is an obstacle, so flocks never wander off what was sampled.