mantaflow  0.10
A framework for fluid simulation
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
Manta::WaveletNoiseField Class Reference
Inheritance diagram for Manta::WaveletNoiseField:

Public Member Functions

 PYTHON () WaveletNoiseField(FluidSolver *parent
 
Real evaluate (Vec3 pos, int tile=0)
 evaluate noise
 
Vec3 evaluateVec (Vec3 pos, int tile=0)
 evaluate noise as a vector
 
Vec3 evaluateCurl (Vec3 pos)
 evaluate curl noise
 
Real * data ()
 direct data access
 
std::string toString ()
 
 PYTHON (name=posOffset) Vec3 mPosOffset
 
 PYTHON (name=posScale) Vec3 mPosScale
 
 PYTHON (name=valOffset) Real mValOffset
 
 PYTHON (name=valScale) Real mValScale
 
 PYTHON (name=clamp) bool mClamp
 
 PYTHON (name=clampNeg) Real mClampNeg
 
 PYTHON (name=clampPos) Real mClampPos
 
 PYTHON (name=timeAnim) Real mTimeAnim
 

Static Public Member Functions

static void computeCoefficients (Grid< Real > &input, Grid< Real > &tempIn1, Grid< Real > &tempIn2)
 compute wavelet decomposition of an input grid (stores residual coefficients)
 

Public Attributes

int fixedSeed =-1
 
int int loadFromFile =false )
 

Protected Member Functions

Real getTime ()
 
void generateTile (int loadFromFile)
 

Static Protected Member Functions

static Real WNoiseDx (const Vec3 &p, Real *data)
 
static Vec3 WNoiseVec (const Vec3 &p, Real *data)
 
static Real WNoise (const Vec3 &p, Real *data)
 
static void downsample (Real *from, Real *to, int n, int stride)
 
static void upsample (Real *from, Real *to, int n, int stride)
 
static void downsampleNeumann (const Real *from, Real *to, int n, int stride)
 
static void upsampleNeumann (const Real *from, Real *to, int n, int stride)
 
static int modSlow (int x, int n)
 

Protected Attributes

Real mGsInvX
 
Real mGsInvY
 
Real mGsInvZ
 
Vec3 mSeedOffset
 

Static Protected Attributes

static Real * mNoiseTile = NULL
 
static int randomSeed = 13322223
 

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