chombo-discharge
Public Member Functions | List of all members
GradedPerlinSphereSdf Class Reference

GradedPerlinSphereSdf function. More...

#include <CD_GradedPerlinSphereSdf.H>

Inheritance diagram for GradedPerlinSphereSdf:
Inheritance graph
[legend]
Collaboration diagram for GradedPerlinSphereSdf:
Collaboration graph
[legend]

Public Member Functions

 GradedPerlinSphereSdf (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)
 Full constructor. More...
 
 GradedPerlinSphereSdf (const GradedPerlinSphereSdf &a_inputIF)
 Copy constructor.
 
virtual ~GradedPerlinSphereSdf ()
 Destructor.
 
virtual Real value (const RealVect &a_pos) const
 Value function.
 
virtual BaseIF * newImplicitFunction () const
 Factory function.
 
- Public Member Functions inherited from PerlinSphereSdf
 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)
 

Additional Inherited Members

- Protected Attributes inherited from PerlinSphereSdf
Real m_rad
 Radius.
 
RealVect m_center
 Center.
 
bool m_inside
 Inside/outside.
 
RefCountedPtr< BaseIF > m_perlinIF
 Noise function.
 

Detailed Description

GradedPerlinSphereSdf function.

This class is a sphere with graded noise – there is only noise on one side of the sphere.

Constructor & Destructor Documentation

◆ GradedPerlinSphereSdf()

GradedPerlinSphereSdf::GradedPerlinSphereSdf ( 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 
)

Full constructor.

Parameters
[in]a_radSphere radius
[in]a_centerSphere center
[in]a_insideInside or outside
[in]a_noiseAmpNoise amplitude
[in]a_noiseFreqNoise frequency
[in]a_persistenceFactor for noise octaves.
[in]a_octavesNumber of octaves
[in]a_reseedIf 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.

The documentation for this class was generated from the following files: