12 #ifndef CD_PerlinPlaneSdf_H
13 #define CD_PerlinPlaneSdf_H
19 #include "CD_NamespaceHeader.H"
40 const RealVect a_point,
42 const Real a_noiseAmp,
43 const RealVect a_noiseFreq,
44 const Real a_persistence,
46 const bool a_reseed =
false);
63 value(
const RealVect& a_pos)
const;
94 #include <CD_NamespaceFooter.H>
Infinite plane with surface noise (Perlin noise).
Definition: CD_PerlinPlaneSdf.H:25
RealVect m_point
Plane point.
Definition: CD_PerlinPlaneSdf.H:81
RealVect m_normal
Plane normal.
Definition: CD_PerlinPlaneSdf.H:76
RefCountedPtr< BaseIF > m_perlin
Noise function.
Definition: CD_PerlinPlaneSdf.H:91
virtual ~PerlinPlaneSdf()
Destructor (does nothing)
Definition: CD_PerlinPlaneSdf.cpp:52
PerlinPlaneSdf(const RealVect a_normal, const RealVect a_point, 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.
Definition: CD_PerlinPlaneSdf.cpp:21
RefCountedPtr< BaseIF > m_plane
BaseIF function for a plane without noise.
Definition: CD_PerlinPlaneSdf.H:86
virtual Real value(const RealVect &a_pos) const
Value function.
Definition: CD_PerlinPlaneSdf.cpp:56
virtual BaseIF * newImplicitFunction() const
Factory method.
Definition: CD_PerlinPlaneSdf.cpp:68