Infinite plane with surface noise (Perlin noise).
More...
#include <CD_PerlinPlaneSdf.H>
|
RealVect | m_normal |
| Plane normal.
|
|
RealVect | m_point |
| Plane point.
|
|
RefCountedPtr< BaseIF > | m_plane |
| BaseIF function for a plane without noise.
|
|
RefCountedPtr< BaseIF > | m_perlin |
| Noise function.
|
|
Infinite plane with surface noise (Perlin noise).
◆ PerlinPlaneSdf() [1/2]
PerlinPlaneSdf::PerlinPlaneSdf |
( |
const RealVect |
a_normal, |
|
|
const RealVect |
a_point, |
|
|
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 |
|
) |
| |
Full constructor.
- Parameters
-
[in] | a_point | Point on the plane |
[in] | a_normal | Plane normal vector |
[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.
◆ PerlinPlaneSdf() [2/2]
Copy constructor.
- Parameters
-
◆ newImplicitFunction()
BaseIF * PerlinPlaneSdf::newImplicitFunction |
( |
| ) |
const |
|
virtual |
Factory method.
- Returns
- Returns new plane with same parameters.
◆ value()
Real PerlinPlaneSdf::value |
( |
const RealVect & |
a_pos | ) |
const |
|
virtual |
Value function.
- Parameters
-
The documentation for this class was generated from the following files: