Function gl_utils::mesh::grid_3d_instanced_lines_list[][src]

pub fn grid_3d_instanced_lines_list(
    index_offset: u32,
    dims: u16
) -> (Vec<Vert3dInstanced>, Vec<u32>)

Produces vertices and indices for a 3D lines list arranged in a square grid in the X/Y plane of dims by dims dimensions.

The number of vertices will be (dims + 1)^2.

The number of indices will be 4*(dims^2 + dims)

Panics

Panics if dims is zero