Function generate_block_cluster

Source
pub fn generate_block_cluster(
    length: [f64; 3],
    centre: [f64; 3],
    theta: [f64; 3],
    resolution: [usize; 3],
) -> Vec<[f64; 3]>
Expand description

Creates a new 3D block of nodes.

§Arguments

  • length: A [f64; 3] specifying the length of the grid in the x, y, and z directions.
  • centre: A [f64; 3] specifying the coordinates of the centre of the grid.
  • theta: A [f64; 3] specifying the angles of rotation of the grid.
  • resolution: A [usize; 3] specifying the number of divisions in the x, y, and z directions.

§Returns

A new Vec<[f64; 3]> instance.