|
Blender V4.3
|
Class to define Perlin noise. More...
#include <cmath>#include <cstdio>#include <cstdlib>#include <ctime>#include "BLI_compiler_attrs.h"#include "BLI_rand.h"#include "BLI_sys_types.h"#include "Noise.h"Go to the source code of this file.
Namespaces | |
| namespace | Freestyle |
| inherits from class Rep | |
Macros | |
| #define | SCURVE(a) ((a) * (a) * (3.0 - 2.0 * (a))) |
| #define | BM 0xff |
| #define | N 0x1000 |
| #define | LERP(t, a, b) ((a) + (t) * ((b) - (a))) |
| #define | SETUP(i, b0, b1, r0, r1) |
| #define | AT2(rx, ry) ((rx) * q[0] + (ry) * q[1]) |
| #define | AT3(rx, ry, rz) ((rx) * q[0] + (ry) * q[1] + (rz) * q[2]) |
Functions | |
| static void | Freestyle::normalize2 (float v[2]) |
| static void | Freestyle::normalize3 (float v[3]) |
Class to define Perlin noise.
Definition in file Noise.cpp.
| #define AT2 | ( | rx, | |
| ry ) ((rx) * q[0] + (ry) * q[1]) |
Referenced by Freestyle::Noise::smoothNoise2().
| #define AT3 | ( | rx, | |
| ry, | |||
| rz ) ((rx) * q[0] + (ry) * q[1] + (rz) * q[2]) |
Referenced by Freestyle::Noise::smoothNoise3().
Definition at line 45 of file Noise.cpp.
Referenced by Freestyle::Noise::smoothNoise1(), Freestyle::Noise::smoothNoise2(), and Freestyle::Noise::smoothNoise3().
| #define SCURVE | ( | a | ) | ((a) * (a) * (3.0 - 2.0 * (a))) |
Definition at line 23 of file Noise.cpp.
Referenced by Freestyle::Noise::smoothNoise1(), Freestyle::Noise::smoothNoise2(), and Freestyle::Noise::smoothNoise3().