A rod geometry, but with noise on one of the end caps.
More...
#include <CD_PerlinRodSdf.H>
|
| PerlinRodSdf ()=delete |
| No weak construction.
|
|
| PerlinRodSdf (const Real &a_rad, const RealVect &a_center1, const RealVect &a_center2, 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. More...
|
|
| PerlinRodSdf (const PerlinRodSdf &a_inputIF) |
| Copy constructor. More...
|
|
virtual | ~PerlinRodSdf () |
| Destructor.
|
|
virtual Real | value (const RealVect &a_pos) const |
| Value function. More...
|
|
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. More...
|
|
| PerlinSphereSdf (const PerlinSphereSdf &a_inputIF) |
| Copy constructor. More...
|
|
virtual | ~PerlinSphereSdf () |
| Destructor (does nothing)
|
|
A rod geometry, but with noise on one of the end caps.
◆ PerlinRodSdf() [1/2]
PerlinRodSdf::PerlinRodSdf |
( |
const Real & |
a_rad, |
|
|
const RealVect & |
a_center1, |
|
|
const RealVect & |
a_center2, |
|
|
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 | Rod radius |
[in] | a_center1 | One end of the rod |
[in] | a_center2 | Other end of the rod. |
[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.
◆ PerlinRodSdf() [2/2]
PerlinRodSdf::PerlinRodSdf |
( |
const PerlinRodSdf & |
a_inputIF | ) |
|
Copy constructor.
- Parameters
-
[in] | a_inputIF | Other object |
◆ value()
Real PerlinRodSdf::value |
( |
const RealVect & |
a_pos | ) |
const |
|
virtual |
The documentation for this class was generated from the following files:
- Source/ImplicitFunctions/CD_PerlinRodSdf.H
- Source/ImplicitFunctions/CD_PerlinRodSdf.cpp