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