class PerlinNoise3

Bases: PerlinNoise

This class provides an implementation of Perlin noise for 3 variables. This code is loosely based on the reference implementation at .

Inheritance diagram

Inheritance diagram of PerlinNoise3

explicit PerlinNoise3(double sx, double sy, double sz, int table_size = 256, unsigned long int seed = 0)
PerlinNoise3(PerlinNoise3 const &copy)

Randomizes the tables to make a unique noise function. Uses a default scale (noise frequency), table size, and 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.

Makes an exact copy of the existing PerlinNoise object, including its random seed.

double noise(double x, double y, double z) const
float noise(LVecBase3f const &value) const
double noise(LVecBase3d const &value) const

Returns the noise function of the three inputs.

void set_scale(double scale)
void set_scale(double sx, double sy, double sz)
void set_scale(LVecBase3f const &scale)
void set_scale(LVecBase3d const &scale)

Changes the scale (frequency) of the noise.