chombo-discharge
|
Implicit function class describing a slab (box) with surface noise on the top. More...
#include <CD_PerlinSlabSdf.H>
Public Member Functions | |
PerlinSlabSdf ()=delete | |
No weak constructor allowed, use the full constructor. | |
PerlinSlabSdf (const RealVect a_ccPoint, const RealVect a_normal, const RealVect a_xyz, const RealVect a_noiseFreq, const int a_octaves, const Real a_noiseAmp, const Real a_persistence, const Real a_cornerCurv, const bool a_reseed, const bool a_fluidInside) | |
Constructor. | |
PerlinSlabSdf (const PerlinSlabSdf &a_inputIF) | |
Copy constructor. Copies over implicit function. | |
virtual | ~PerlinSlabSdf () |
Destructor (does nothing) | |
virtual Real | value (const RealVect &a_pos) const override |
Value function. Returns distance to object. | |
virtual BaseIF * | newImplicitFunction () const override |
Factory function. | |
Protected Attributes | |
RefCountedPtr< BaseIF > | m_baseif |
Implicit function. This is a union between cutting planes and a perlin plane. | |
bool | m_fluidInside |
Fluid on inside or not. | |
Implicit function class describing a slab (box) with surface noise on the top.
PerlinSlabSdf::PerlinSlabSdf | ( | const RealVect | a_ccPoint, |
const RealVect | a_normal, | ||
const RealVect | a_xyz, | ||
const RealVect | a_noiseFreq, | ||
const int | a_octaves, | ||
const Real | a_noiseAmp, | ||
const Real | a_persistence, | ||
const Real | a_cornerCurv, | ||
const bool | a_reseed, | ||
const bool | a_fluidInside | ||
) |
Constructor.
[in] | a_ccPoint | Center point on the slab side with surface noise |
[in] | a_normal | Normal vector of slab side with surface noise |
[in] | a_xyz | Width, depth, and height of slab |
[in] | a_curv | Corner curvatures |
[in] | a_noiseFreq | Noise frequency |
[in] | a_octaves | Number of octaves |
[in] | a_noiseAmp | Noise amplitude |
[in] | a_persistence | Factor for noise octaves. |
[in] | a_cornerCurv | Corner curvatures |
[in] | a_reseed | If true, reseed the RNG. Otherwise, the the original Perlin hash table. |
[in] | a_fluidInside | Fluid on inside or not |
Value function. Returns distance to object.
[in] | a_pos | Position. |