Fbm 函数

详细描述

函数

void  InitFbm ( Float *table, Int32 max_octaves, Float lacunarity, Float h)
Float   Fbm ( Float *table, const 向量 &p, Float oct)
Float   Fbm ( Float *table, const 向量 &p, Float t, Float oct)
Float   RidgedMultifractal ( Float *table, const 向量 &p, Float oct, Float offset, Float gain)

Function Documentation

◆  InitFbm()

void InitFbm ( Float table ,
Int32   max_octaves ,
Float   lacunarity ,
Float   h  
)

Initializes the tables needed for the Fractional Brownian Motion.
范例:

Float arr[20]; InitFbm (arr, 10, 2.0, 0.5); // max_octaves must not exceed 18 (as the array can contain 20 values maximum)
参数
[in] table A preallocated array of size max_octaves + 2 . The caller owns the pointed array.
[in] max_octaves The number of octaves for the table.
[in] lacunarity The gap between successive frequencies.
[in] h The fractal increment parameter.

◆  Fbm() [1/2]

Float Fbm ( Float table ,
const 向量 p ,
Float   oct  
)

Generates a Fractional Brownian Motion value.

注意
InitFbm() must be called before this function.
参数
[in] table The preallocated and initialized table by InitFbm() . The caller owns the pointed array.
[in] p The evaluation point.
[in] oct The number of octaves. Must not exceed the max_octaves value passed to InitFbm() , but can be lower.
返回
The fBm value.

◆  Fbm() [2/2]

Float Fbm ( Float table ,
const 向量 p ,
Float   t ,
Float   oct  
)

Generates a Fractional Brownian Motion value.

注意
InitFbm() must be called before this function.
参数
[in] table The preallocated and initialized table by InitFbm() . The caller owns the pointed array.
[in] p The evaluation point.
[in] t The time.
[in] oct The number of octaves. Must not exceed the max_octaves value passed to InitFbm() , but can be lower.
返回
The fBm value.

◆  RidgedMultifractal()

Float RidgedMultifractal ( Float table ,
const 向量 p ,
Float   oct ,
Float   offset ,
Float   gain  
)

Generates a fractal function used for such things as landscapes or mountain ranges.

注意
InitFbm() must be called before this function.
参数
[in] table The preallocated and initialized table by InitFbm() . The caller owns the pointed array.
[in] p The evaluation point.
[in] oct The number of octaves. Must not exceed the max_octaves value passed to InitFbm() , but can be lower.
[in] offset The zero offset, this controls the multi-fractal.
[in] gain The amplification of the fractal value.
返回
The fractal value.
Float
maxon::Float Float
定义: ge_sys_math.h:64
InitFbm
void InitFbm(Float *table, Int32 max_octaves, Float lacunarity, Float h)
定义: c4d_tools.h:1171

Copyright  © 2014-2025 乐数软件    

工业和信息化部: 粤ICP备14079481号-1