pub fn generate_terrain_mesh(
heightfield: &[f32],
width: usize,
height: usize,
cell_size: f64,
) -> TerrainMeshExpand description
Generates a triangulated terrain mesh from a 2D array of height values.
The heightfield is expected to be in row-major order.
cell_size is the spatial distance between adjacent height samples.