Noisy sphere geometry (with Perlin noise).
More...
#include <CD_PerlinSphereSdf.H>
|
|
| 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.
|
| |
|
|
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() [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 |
◆ newImplicitFunction()
| BaseIF * PerlinSphereSdf::newImplicitFunction |
( |
| ) |
const |
|
virtual |
◆ value()
| Real PerlinSphereSdf::value |
( |
const RealVect & |
a_pos | ) |
const |
|
virtual |
The documentation for this class was generated from the following files: