/// <summary> /// Generates an cube of values within a specified range based on the coordinates of the specified start values. /// <para>Caution: the <see cref="OutOfMemoryException"/> arrives quickly</para> /// </summary> /// <param name="module"><see cref="IModule3D"/> represent a noise generator.</param> /// <param name="width">The width of the cube (x-axis).</param> /// <param name="height">The height of the cube (y-axis).</param> /// <param name="depth">The depth" of the cube (z-axis).</param> /// <param name="range">Target range to convert the cube.</param> /// <param name="start_x">The start coordinate on the x-axis.</param> /// <param name="start_y">The start coordinate on the y-axis.</param> /// <param name="start_z">The start coordinate on the z-axis.</param> /// <returns>The resulting cube in target range.</returns> static public float[,,] GetCube(this IModule3D module, int width, int height, int depth, NoiseRange range, int start_x, int start_y, int start_z) { return(module.GetCube(width, height, depth, 1, range, start_x, start_y, start_z)); }
/// <summary> /// Generates an cube of values within a specified range. /// <para>Caution: the <see cref="OutOfMemoryException"/> arrives quickly</para> /// </summary> /// <param name="module"><see cref="IModule3D"/> represent a noise generator.</param> /// <param name="width">The width of the cube (x-axis).</param> /// <param name="height">The height of the cube (y-axis).</param> /// <param name="depth">The depth" of the cube (z-axis).</param> /// <param name="scaleFactor">The scale factor of the cube.</param> /// <param name="range">Target range to convert the cube.</param> /// <returns>The resulting cube in target range.</returns> static public float[,,] GetCube(this IModule3D module, int width, int height, int depth, float scaleFactor, NoiseRange range) { return(module.GetCube(width, height, depth, scaleFactor, range, 0, 0, 0)); }
/// <summary> /// Generates an cube of values within a specified coordinates of the specified start values. /// <para>Caution: the <see cref="OutOfMemoryException"/> arrives quickly</para> /// </summary> /// <param name="module"><see cref="IModule3D"/> represent a noise generator.</param> /// <param name="width">The width of the cube (x-axis).</param> /// <param name="height">The height of the cube (y-axis).</param> /// <param name="depth">The depth" of the cube (z-axis).</param> /// <param name="scaleFactor">The scale factor of the cube.</param> /// <param name="start_x">The start coordinate on the x-axis.</param> /// <param name="start_y">The start coordinate on the y-axis.</param> /// <param name="start_z">The start coordinate on the z-axis.</param> /// <returns>The resulting cube.</returns> static public float[,,] GetCube(this IModule3D module, int width, int height, int depth, float scaleFactor, int start_x, int start_y, int start_z) { return(module.GetCube(width, height, depth, scaleFactor, _default, start_x, start_y, start_z)); }
/// <summary> /// Generates an cube of values. /// <para>Caution: the <see cref="OutOfMemoryException"/> arrives quickly</para> /// </summary> /// <param name="module"><see cref="IModule3D"/> represent a noise generator.</param> /// <param name="width">The width of the cube (x-axis).</param> /// <param name="height">The height of the cube (y-axis).</param> /// <param name="depth">The depth" of the cube (z-axis).</param> /// <returns>The resulting cube.</returns> static public float[,,] GetCube(this IModule3D module, int width, int height, int depth) { return(module.GetCube(width, height, depth, 1, _default)); }