pub fn grid_segments(mesh: &Mesh) -> Option<usize>
Detect a grid produced by grid_mesh: (s+1)² shared vertices on a regular XZ lattice plus s²·6 indices in the builder’s winding pattern. Returns the segment count s.
grid_mesh
(s+1)²
s²·6
s