|
chombo-discharge
|
Noisy sphere geometry (with Perlin noise). More...
#include <CD_PerlinSphereSdf.H>


Public Member Functions | |
| PerlinSphereSdf () | |
| No weak construction. | |
| 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. | |
| PerlinSphereSdf (const PerlinSphereSdf &a_inputIF) | |
| Copy constructor. | |
| virtual | ~PerlinSphereSdf () |
| Destructor (does nothing) | |
| virtual Real | value (const RealVect &a_pos) const |
| Value function. Returns distance to object. | |
| virtual BaseIF * | newImplicitFunction () const |
| Factory function. | |
Protected Attributes | |
| Real | m_rad |
| Radius. | |
| RealVect | m_center |
| Center. | |
| bool | m_inside |
| Inside/outside. | |
| RefCountedPtr< BaseIF > | m_perlinIF |
| Noise function. | |
Noisy sphere geometry (with Perlin noise).
| 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.
| [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. |
| PerlinSphereSdf::PerlinSphereSdf | ( | const PerlinSphereSdf & | a_inputIF | ) |
Copy constructor.
| [in] | a_inputIF | Other perlin sphere |
|
virtual |
Factory function.
Reimplemented in GradedPerlinSphereSdf, and PerlinRodSdf.
Value function. Returns distance to object.
| [in] | a_pos | Position |
Reimplemented in GradedPerlinSphereSdf, and PerlinRodSdf.