|
chombo-discharge
|
Infinite plane with surface noise (Perlin noise). More...
#include <CD_PerlinPlaneSdf.H>


Public Member Functions | |
| 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. | |
| PerlinPlaneSdf (const PerlinPlaneSdf &a_inputIF) | |
| Copy constructor. | |
| virtual | ~PerlinPlaneSdf () |
| Destructor (does nothing) | |
| virtual Real | value (const RealVect &a_pos) const |
| Value function. | |
| virtual BaseIF * | newImplicitFunction () const |
| Factory method. | |
Protected Attributes | |
| 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::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.
| [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. |
| PerlinPlaneSdf::PerlinPlaneSdf | ( | const PerlinPlaneSdf & | a_inputIF | ) |
Copy constructor.
| [in] | a_inputIF | Other plane |
|
virtual |
Factory method.
Value function.
| [in] | a_pos | Position |