open_simplex_noise#

Signature#

open_simplex_noise(x_coordinates, y_coordinates, seed) Field#

Return a noise field based on the OpenSimplex noise function

Parameters:
  • x_coordinates (Field) – Floating point array

  • y_coordinates (Field) – Floating point array

  • int (seed) – Seed

Returns:

New floating point array with values in the range [-1, 1]

Description#

Operation for creating noise fields that can be used, for example, to generate elevation models.

The cell_index operation can be used to create the argument to pass into the operation.

No-data handling#

A cell containing a no-data value in one of the input arrays results in a no-data value in the corresponding cell in the output array. No new no-data values are generated.

Example#

/* TODO */
auto const noise = lue::value_policies::open_simplex_noise(x_coordinates, y_coordinates, seed);
// TODO
noise = lfr.open_simplex_noise(x_coordinates, y_coordinates, seed)

See also#