Blender V5.0
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
16namespace Freestyle {
17
19 public:
20 virtual ~PseudoNoise() {}
21
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;
33
34 MEM_CXX_CLASS_ALLOC_FUNCS("Freestyle:PseudoNoise")
35};
36
37} /* namespace Freestyle */
unsigned int uint
Read Guarded memory(de)allocation.
Define the float precision used in the program.
void init()
static unsigned long seed
Definition btSoftBody.h:39
real turbulenceLinear(real x, uint nbOctave=8)
static real _values[NB_VALUE_NOISE]
Definition PseudoNoise.h:32
static const uint NB_VALUE_NOISE
Definition PseudoNoise.h:31
real turbulenceSmooth(real x, uint nbOctave=8)
inherits from class Rep
Definition AppCanvas.cpp:20
static uint x[3]
Definition RandGen.cpp:77
double real
Definition Precision.h:14