pub fn decimate_mesh(
p: &mut Project,
mesh_id: MeshId,
ratio: f32,
) -> Result<(usize, usize)>Expand description
Decimate one mesh asset. Terrain grids are resampled (clean lattice); everything else goes through clustering. Skinned meshes are refused: vertex weights would point at merged vertices. Returns (before, after).