Fills map with elevation data using a budget-controlled BFS raise/sink algorithm. Sets only elevation — terrain types must be assigned by the caller afterward. Cells start at elevation -1 (ocean). Land cells end up at elevation ≥ 0.
map
Fills
mapwith elevation data using a budget-controlled BFS raise/sink algorithm. Sets only elevation — terrain types must be assigned by the caller afterward. Cells start at elevation -1 (ocean). Land cells end up at elevation ≥ 0.