Skip to main content

grid_parameters

Function grid_parameters 

Source
pub fn grid_parameters(
    rows: &[Vec<Point>],
    by_chord: (bool, bool),
) -> OgeomResult<(Vec<f64>, Vec<f64>)>
Expand description

The parameters fit_surface_grid and its chord-length and section variants assign a rectangular grid: one shared assignment per direction, the average of every row’s (u) and every column’s (v), chord length or centripetal as by_chord says per direction.

§Errors

OgeomError::Construction if the grid is not rectangular or is smaller than two by two.