12 #ifndef CD_PerlinSphereSdf_H
13 #define CD_PerlinSphereSdf_H
21 #include <CD_NamespaceHeader.H>
48 const RealVect& a_center,
50 const Real& a_noiseAmp,
51 const RealVect& a_noiseFreq,
52 const Real& a_persistence,
54 const bool& a_reseed =
false);
72 value(
const RealVect& a_pos)
const;
102 #include <CD_NamespaceFooter.H>
Declaration of signed distance Perlin noise.
Noisy sphere geometry (with Perlin noise).
Definition: CD_PerlinSphereSdf.H:27
RefCountedPtr< BaseIF > m_perlinIF
Noise function.
Definition: CD_PerlinSphereSdf.H:99
Real m_rad
Radius.
Definition: CD_PerlinSphereSdf.H:84
virtual Real value(const RealVect &a_pos) const
Value function. Returns distance to object.
Definition: CD_PerlinSphereSdf.cpp:45
virtual BaseIF * newImplicitFunction() const
Factory function.
Definition: CD_PerlinSphereSdf.cpp:92
PerlinSphereSdf()
No weak construction.
Definition: CD_PerlinSphereSdf.H:32
RealVect m_center
Center.
Definition: CD_PerlinSphereSdf.H:89
virtual ~PerlinSphereSdf()
Destructor (does nothing)
Definition: CD_PerlinSphereSdf.cpp:41
bool m_inside
Inside/outside.
Definition: CD_PerlinSphereSdf.H:94