Blender
V3.3
source
blender
freestyle
intern
system
PseudoNoise.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-or-later */
2
3
#pragma once
4
10
#include "
Precision.h
"
11
12
#ifdef WITH_CXX_GUARDEDALLOC
13
# include "
MEM_guardedalloc.h
"
14
#endif
15
16
namespace
Freestyle
{
17
18
class
PseudoNoise
{
19
public
:
20
virtual
~PseudoNoise
()
21
{
22
}
23
24
real
smoothNoise
(
real
x
);
25
real
linearNoise
(
real
x
);
26
27
real
turbulenceSmooth
(
real
x
,
unsigned
nbOctave = 8);
28
real
turbulenceLinear
(
real
x
,
unsigned
nbOctave = 8);
29
30
static
void
init
(
long
seed
);
31
32
protected
:
33
static
const
unsigned
NB_VALUE_NOISE
= 512;
34
static
real
_values
[
NB_VALUE_NOISE
];
35
36
#ifdef WITH_CXX_GUARDEDALLOC
37
MEM_CXX_CLASS_ALLOC_FUNCS(
"Freestyle:PseudoNoise"
)
38
#endif
39
};
40
41
}
/* namespace Freestyle */
MEM_guardedalloc.h
Read Guarded memory(de)allocation.
Precision.h
Define the float precision used in the program.
seed
static unsigned long seed
Definition:
btSoftBody.h:39
Freestyle::PseudoNoise
Definition:
PseudoNoise.h:18
Freestyle::PseudoNoise::NB_VALUE_NOISE
static const unsigned NB_VALUE_NOISE
Definition:
PseudoNoise.h:33
Freestyle::PseudoNoise::smoothNoise
real smoothNoise(real x)
Definition:
PseudoNoise.cpp:58
Freestyle::PseudoNoise::turbulenceSmooth
real turbulenceSmooth(real x, unsigned nbOctave=8)
Definition:
PseudoNoise.cpp:82
Freestyle::PseudoNoise::linearNoise
real linearNoise(real x)
Definition:
PseudoNoise.cpp:38
Freestyle::PseudoNoise::_values
static real _values[NB_VALUE_NOISE]
Definition:
PseudoNoise.h:34
Freestyle::PseudoNoise::~PseudoNoise
virtual ~PseudoNoise()
Definition:
PseudoNoise.h:20
Freestyle::PseudoNoise::turbulenceLinear
real turbulenceLinear(real x, unsigned nbOctave=8)
Definition:
PseudoNoise.cpp:93
Freestyle::PseudoNoise::init
static void init(long seed)
Definition:
PseudoNoise.cpp:30
Freestyle
inherits from class Rep
Definition:
AppCanvas.cpp:18
Freestyle::x
static unsigned x[3]
Definition:
RandGen.cpp:73
Freestyle::real
double real
Definition:
Precision.h:12
Generated on Tue Oct 22 2024 13:18:25 for Blender by
doxygen
1.9.1