GradedPerlinSphereSdf function.
More...
#include <CD_GradedPerlinSphereSdf.H>
|
| | GradedPerlinSphereSdf (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) |
| | Full constructor.
|
| |
| | GradedPerlinSphereSdf (const GradedPerlinSphereSdf &a_inputIF) |
| | Copy constructor.
|
| |
|
virtual | ~GradedPerlinSphereSdf () |
| | Destructor.
|
| |
| virtual Real | value (const RealVect &a_pos) const |
| | Value function.
|
| |
| virtual BaseIF * | newImplicitFunction () const |
| | Factory function.
|
| |
|
| 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)
|
| |
|
|
Real | m_rad |
| | Radius.
|
| |
|
RealVect | m_center |
| | Center.
|
| |
|
bool | m_inside |
| | Inside/outside.
|
| |
|
RefCountedPtr< BaseIF > | m_perlinIF |
| | Noise function.
|
| |
GradedPerlinSphereSdf function.
This class is a sphere with graded noise – there is only noise on one side of the sphere.
◆ GradedPerlinSphereSdf() [1/2]
| GradedPerlinSphereSdf::GradedPerlinSphereSdf |
( |
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 |
|
) |
| |
Full 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.
◆ GradedPerlinSphereSdf() [2/2]
Copy constructor.
- Parameters
-
| [in,out] | a_inputIF | Description |
◆ newImplicitFunction()
| BaseIF * GradedPerlinSphereSdf::newImplicitFunction |
( |
| ) |
const |
|
virtual |
Factory function.
- Returns
- New copy of this implicit function
Reimplemented from PerlinSphereSdf.
◆ value()
| Real GradedPerlinSphereSdf::value |
( |
const RealVect & |
a_pos | ) |
const |
|
virtual |
Value function.
- Returns
- Function value at the given point
- Parameters
-
Reimplemented from PerlinSphereSdf.
The documentation for this class was generated from the following files: