#include <GiNoiseGenerator.h>
Noise generator for procedural textures generation (based on Perlin noise).
- See also
- TD_Gi
<group OdGi_Classes>
Definition at line 46 of file GiNoiseGenerator.h.
◆ createObject()
Create OdGiNoiseGenerator, initialized by specified seed.
- Parameters
-
seed | [in] Random number generator seed. |
◆ fBm()
virtual double OdGiNoiseGenerator::fBm |
( |
const OdGePoint3d & |
point, |
|
|
double |
H, |
|
|
double |
lacunarity, |
|
|
double |
octaves |
|
) |
| const |
|
pure virtual |
Fractal brownian motion.
- Parameters
-
point | [in] 3D input point location. |
H | [in] Range fractal dimension 1.0 - 0.0 where 0.0 is total chaos. |
lacunarity | [in] Gap between successive frequencies, use 2.0. |
octaves | [in] Number of frequencies in the fBm. 3 - 7. |
- Returns
- values between -1.0 and 1.0.
◆ initSeed()
Initializes noise generation tables to specified seed.
- Parameters
-
seed | [in] Random number generator seed. |
◆ noise()
virtual double OdGiNoiseGenerator::noise |
( |
double |
point[], |
|
|
OdInt32 |
len |
|
) |
| const |
|
pure virtual |
General noise function calls the previous 3 depending on len. Input range from 0 to 3.
- Parameters
-
point | [in] 1D, 2D or 3D point location. |
len | [in] Point dimensions. |
- Returns
- values between -1.0 and 1.0.
◆ noise1d()
virtual double OdGiNoiseGenerator::noise1d |
( |
double |
point | ) |
const |
|
pure virtual |
Generates noise value for a 1D location.
- Parameters
-
point | [in] 1D point location. |
- Returns
- values between -1.0 and 1.0.
◆ noise2d()
virtual double OdGiNoiseGenerator::noise2d |
( |
const OdGePoint2d & |
point | ) |
const |
|
pure virtual |
Generates noise value for a 2D location.
- Parameters
-
point | [in] 2D point location. |
- Returns
- values between -1.0 and 1.0.
◆ noise3d()
virtual double OdGiNoiseGenerator::noise3d |
( |
const OdGePoint3d & |
point | ) |
const |
|
pure virtual |
Generates noise value for a 3D location.
- Parameters
-
point | [in] 3D point location. |
- Returns
- values between -1.0 and 1.0.
◆ ODRX_DECLARE_MEMBERS()
◆ oNoise()
virtual double OdGiNoiseGenerator::oNoise |
( |
const OdGePoint3d & |
point, |
|
|
double |
freq |
|
) |
| const |
|
pure virtual |
Noise across a number of octaves.
- Parameters
-
point | [in] 3D input point location. |
freq | [in] Turbulence frequency. |
- Returns
- values between -1.0 and 1.0.
◆ turbulence()
virtual double OdGiNoiseGenerator::turbulence |
( |
const OdGePoint3d & |
point, |
|
|
double |
freq |
|
) |
| const |
|
pure virtual |
Generates turbulent noise across a number of octaves.
- Parameters
-
point | [in] 3D input point location. |
freq | [in] Turbulence frequency. |
- Returns
- values between -1.0 and 1.0.
The documentation for this class was generated from the following file: