Noisy sphere geometry (with Perlin noise).
More...
#include <CD_PerlinSphereSdf.H>
Noisy sphere geometry (with Perlin noise).
◆ PerlinSphereSdf() [1/2]
PerlinSphereSdf::PerlinSphereSdf |
( |
const Real & |
a_rad, |
|
|
const RealVect & |
a_center, |
|
|
const bool & |
a_inside, |
|
|
const Real & |
a_noiseAmp, |
|
|
const RealVect & |
a_noiseFreq, |
|
|
const Real & |
a_persistence, |
|
|
const int & |
a_octaves, |
|
|
const bool & |
a_reseed = false |
|
) |
| |
Constructor.
- Parameters
-
[in] | a_rad | Sphere radius |
[in] | a_center | Sphere center |
[in] | a_inside | Inside or outside |
[in] | a_noiseAmp | Noise amplitude |
[in] | a_noiseFreq | Noise frequency |
[in] | a_persistence | Factor for noise octaves. |
[in] | a_octaves | Number of octaves |
[in] | a_reseed | If true, reseed the RNG. Otherwise, the the original Perlin hash table. |
- Note
- The persistence argument indicates how we add octaves. With 0.5 we use half the amplitude and twice the frequency for the next octave.
◆ PerlinSphereSdf() [2/2]
Copy constructor.
- Parameters
-
[in] | a_inputIF | Other perlin sphere |
◆ value()
Real PerlinSphereSdf::value |
( |
const RealVect & |
a_pos | ) |
const |
|
virtual |
The documentation for this class was generated from the following files: