Blender  V3.3
Public Member Functions | List of all members
Freestyle::Noise Class Reference

#include <Noise.h>

Public Member Functions

 Noise (long seed=-1)
 
 ~Noise ()
 
float turbulence1 (float arg, float freq, float amp, unsigned oct=4)
 
float turbulence2 (Vec2f &v, float freq, float amp, unsigned oct=4)
 
float turbulence3 (Vec3f &v, float freq, float amp, unsigned oct=4)
 
float smoothNoise1 (float arg)
 
float smoothNoise2 (Vec2f &vec)
 
float smoothNoise3 (Vec3f &vec)
 

Detailed Description

Class to provide Perlin Noise functionalities

Definition at line 27 of file Noise.h.

Constructor & Destructor Documentation

◆ Noise()

Freestyle::Noise::Noise ( long  seed = -1)

◆ ~Noise()

Freestyle::Noise::~Noise ( )
inline

Destructor

Definition at line 33 of file Noise.h.

Member Function Documentation

◆ smoothNoise1()

float Freestyle::Noise::smoothNoise1 ( float  arg)

Returns a smooth noise value for a 1D element

Definition at line 112 of file Noise.cpp.

References LERP, SCURVE, SETUP, sx, t, and v.

Referenced by turbulence1().

◆ smoothNoise2()

float Freestyle::Noise::smoothNoise2 ( Vec2f vec)

Returns a smooth noise value for a 2D element

Definition at line 128 of file Noise.cpp.

References Freestyle::a, AT2, usdtokens::b(), LERP, SCURVE, SETUP, sx, sy, t, v, Freestyle::VecMat::Vec2< T >::x(), and Freestyle::VecMat::Vec2< T >::y().

Referenced by turbulence2().

◆ smoothNoise3()

float Freestyle::Noise::smoothNoise3 ( Vec3f vec)

Returns a smooth noise value for a 3D element

Definition at line 167 of file Noise.cpp.

References Freestyle::a, AT3, usdtokens::b(), Freestyle::c, LERP, SCURVE, SETUP, sy, t, v, Freestyle::VecMat::Vec3< T >::x(), Freestyle::VecMat::Vec3< T >::y(), and Freestyle::VecMat::Vec3< T >::z().

Referenced by turbulence3().

◆ turbulence1()

float Freestyle::Noise::turbulence1 ( float  arg,
float  freq,
float  amp,
unsigned  oct = 4 
)

Returns a noise value for a 1D element

Definition at line 72 of file Noise.cpp.

References smoothNoise1(), and t.

◆ turbulence2()

float Freestyle::Noise::turbulence2 ( Vec2f v,
float  freq,
float  amp,
unsigned  oct = 4 
)

Returns a noise value for a 2D element

Definition at line 84 of file Noise.cpp.

References smoothNoise2(), t, v, Freestyle::VecMat::Vec2< T >::x(), and Freestyle::VecMat::Vec2< T >::y().

◆ turbulence3()

float Freestyle::Noise::turbulence3 ( Vec3f v,
float  freq,
float  amp,
unsigned  oct = 4 
)

Returns a noise value for a 3D element

Definition at line 97 of file Noise.cpp.

References smoothNoise3(), t, v, Freestyle::VecMat::Vec3< T >::x(), Freestyle::VecMat::Vec3< T >::y(), and Freestyle::VecMat::Vec3< T >::z().


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