13#ifndef CD_PERLINSPHERESDF_H
14#define CD_PERLINSPHERESDF_H
22#include <CD_NamespaceHeader.H>
50 const RealVect& a_center,
52 const Real& a_noiseAmp,
53 const RealVect& a_noiseFreq,
54 const Real& a_persistence,
56 const bool& a_reseed =
false);
75 value(
const RealVect& a_pos)
const;
106#include <CD_NamespaceFooter.H>
Declaration of signed distance Perlin noise.
Noisy sphere geometry (with Perlin noise).
Definition CD_PerlinSphereSdf.H:28
RefCountedPtr< BaseIF > m_perlinIF
Noise function.
Definition CD_PerlinSphereSdf.H:103
Real m_rad
Radius.
Definition CD_PerlinSphereSdf.H:88
virtual Real value(const RealVect &a_pos) const
Value function. Returns distance to object.
Definition CD_PerlinSphereSdf.cpp:40
virtual BaseIF * newImplicitFunction() const
Factory function.
Definition CD_PerlinSphereSdf.cpp:87
PerlinSphereSdf()
No weak construction.
Definition CD_PerlinSphereSdf.H:33
RealVect m_center
Center.
Definition CD_PerlinSphereSdf.H:93
virtual ~PerlinSphereSdf()
Destructor (does nothing)
bool m_inside
Inside/outside.
Definition CD_PerlinSphereSdf.H:98