|
Blender V4.3
|
#include <Noise.h>
Public Member Functions | |
| Noise (long seed=-1) | |
| ~Noise () | |
| float | turbulence1 (float arg, float freq, float amp, uint oct=4) |
| float | turbulence2 (Vec2f &v, float freq, float amp, uint oct=4) |
| float | turbulence3 (Vec3f &v, float freq, float amp, uint oct=4) |
| float | smoothNoise1 (float arg) |
| float | smoothNoise2 (Vec2f &vec) |
| float | smoothNoise3 (Vec3f &vec) |
| Freestyle::Noise::Noise | ( | long | seed = -1 | ) |
Builds a Noise object
Definition at line 228 of file Noise.cpp.
References _NOISE_B, BLI_rng_free(), BLI_rng_get_int(), BLI_rng_new(), float, Freestyle::normalize2(), Freestyle::normalize3(), and seed.
Returns a smooth noise value for a 2D element
Definition at line 132 of file Noise.cpp.
References Freestyle::a, AT2, b, LERP, SCURVE, SETUP, v, Freestyle::VecMat::Vec2< T >::x(), and Freestyle::VecMat::Vec2< T >::y().
Referenced by turbulence2().
Returns a smooth noise value for a 3D element
Definition at line 171 of file Noise.cpp.
References Freestyle::a, AT3, b, Freestyle::c, LERP, SCURVE, SETUP, v, Freestyle::VecMat::Vec3< T >::x(), Freestyle::VecMat::Vec3< T >::y(), and Freestyle::VecMat::Vec3< T >::z().
Referenced by turbulence3().
Returns a noise value for a 1D element
Definition at line 76 of file Noise.cpp.
References smoothNoise1().
Returns a noise value for a 2D element
Definition at line 88 of file Noise.cpp.
References smoothNoise2(), v, Freestyle::VecMat::Vec2< T >::x(), and Freestyle::VecMat::Vec2< T >::y().
Returns a noise value for a 3D element
Definition at line 101 of file Noise.cpp.
References smoothNoise3(), v, Freestyle::VecMat::Vec3< T >::x(), Freestyle::VecMat::Vec3< T >::y(), and Freestyle::VecMat::Vec3< T >::z().