Skip to main content

resample_grid

Function resample_grid 

Source
pub fn resample_grid(mesh: &mut Mesh, new_segments: usize) -> bool
Expand description

Resample a terrain grid to new_segments per axis by bilinearly sampling the height field; XZ extents are preserved, normals recomputed. Returns false when the mesh is not a grid_mesh lattice.