Skip to main content

grid_segments

Function grid_segments 

Source
pub fn grid_segments(mesh: &Mesh) -> Option<usize>
Expand description

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.