This class provides an implementation of Perlin noise for 3 variables. This code is loosely based on the reference implementation at http://mrl.nyu.edu/~perlin/noise/ .
More...
|
| __init__ () |
| Randomizes the tables to make a unique noise function. Uses a default scale (noise frequency), table size, and seed. More...
|
|
| __init__ (const PerlinNoise3 copy) |
| Makes an exact copy of the existing PerlinNoise object, including its random seed. More...
|
|
| __init__ (double sx, double sy, double sz, int table_size, unsigned long int seed) |
| Randomizes the tables to make a unique noise function. More...
|
|
double | noise (const LVecBase3d value) |
| Returns the noise function of the three inputs. More...
|
|
float | noise (const LVecBase3f value) |
| Returns the noise function of the three inputs. More...
|
|
double | noise (double x, double y, double z) |
| Returns the noise function of the three inputs. More...
|
|
double | operator() (const LVecBase3d value) |
|
float | operator() (const LVecBase3f value) |
|
double | operator() (double x, double y, double z) |
|
PerlinNoise3 | operator= (const PerlinNoise3 copy) |
|
| setScale (const LVecBase3d scale) |
| Changes the scale (frequency) of the noise. More...
|
|
| setScale (const LVecBase3f scale) |
| Changes the scale (frequency) of the noise. More...
|
|
| setScale (double scale) |
| Changes the scale (frequency) of the noise. More...
|
|
| setScale (double sx, double sy, double sz) |
| Changes the scale (frequency) of the noise. More...
|
|
Public Member Functions inherited from PerlinNoise |
unsigned long int | getSeed () |
| Returns a unique seed value based on the seed value passed to this PerlinNoise object (and on its current state). More...
|
|
This class provides an implementation of Perlin noise for 3 variables. This code is loosely based on the reference implementation at http://mrl.nyu.edu/~perlin/noise/ .
◆ __init__() [1/3]
Randomizes the tables to make a unique noise function. Uses a default scale (noise frequency), table size, and seed.
◆ __init__() [2/3]
Makes an exact copy of the existing PerlinNoise object, including its random seed.
◆ __init__() [3/3]
__init__ |
( |
double |
sx, |
|
|
double |
sy, |
|
|
double |
sz, |
|
|
int |
table_size, |
|
|
unsigned long int |
seed |
|
) |
| |
Randomizes the tables to make a unique noise function.
If seed is nonzero, it is used to define the tables; if it is zero a random seed is generated.
◆ noise() [1/3]
Returns the noise function of the three inputs.
◆ noise() [2/3]
Returns the noise function of the three inputs.
◆ noise() [3/3]
double noise |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
z |
|
) |
| |
Returns the noise function of the three inputs.
◆ operator()() [1/3]
◆ operator()() [2/3]
◆ operator()() [3/3]
double operator() |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
z |
|
) |
| |
◆ operator=()
◆ setScale() [1/4]
Changes the scale (frequency) of the noise.
◆ setScale() [2/4]
Changes the scale (frequency) of the noise.
◆ setScale() [3/4]
Changes the scale (frequency) of the noise.
◆ setScale() [4/4]
setScale |
( |
double |
sx, |
|
|
double |
sy, |
|
|
double |
sz |
|
) |
| |
Changes the scale (frequency) of the noise.