Blender V4.3
Freestyle::Noise Class Reference

#include <Noise.h>

Public Member Functions

 Noise (long seed=-1)
 
 ~Noise ()
 
float turbulence1 (float arg, float freq, float amp, uint oct=4)
 
float turbulence2 (Vec2f &v, float freq, float amp, uint oct=4)
 
float turbulence3 (Vec3f &v, float freq, float amp, uint 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 29 of file Noise.h.

Constructor & Destructor Documentation

◆ Noise()

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

◆ ~Noise()

Freestyle::Noise::~Noise ( )
inline

Destructor

Definition at line 35 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 116 of file Noise.cpp.

References LERP, SCURVE, SETUP, and v.

Referenced by turbulence1().

◆ smoothNoise2()

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

Returns a smooth noise value for a 2D element

Definition at line 132 of file Noise.cpp.

References Freestyle::a, AT2, b, LERP, SCURVE, SETUP, 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 171 of file Noise.cpp.

References Freestyle::a, AT3, b, Freestyle::c, LERP, SCURVE, SETUP, 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,
uint oct = 4 )

Returns a noise value for a 1D element

Definition at line 76 of file Noise.cpp.

References smoothNoise1().

◆ turbulence2()

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

Returns a noise value for a 2D element

Definition at line 88 of file Noise.cpp.

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

◆ turbulence3()

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

Returns a noise value for a 3D element

Definition at line 101 of file Noise.cpp.

References smoothNoise3(), 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: