载入中...
搜索中...
未找到
eve::fluids::SurfaceWetnessField类 参考

Lightweight material-space wet-film field stored at mesh vertices. 更多...

#include <SurfaceWetnessField.h>

Public 成员函数

bool build (const FluidSurfaceBinding &binding)
 Initialize the field from a surface topology.
 
void deposit (const SurfaceLocation &location, float amount)
 Deposit a wet trace at a material-space location.
 
void step (float dt, const SurfaceWetnessParams &params={})
 Diffuse and evaporate the field by dt seconds.
 
float sample (const SurfaceLocation &location) const
 Sample.
 
const std::vector< float > & values () const
 Values.
 
void clear ()
 Reset all wetness to zero.
 

详细描述

Lightweight material-space wet-film field stored at mesh vertices.

The values follow the topology while the bound mesh moves or deforms. Deposits are barycentrically distributed, then diffused over vertex edges and evaporated.

在文件 SurfaceWetnessField.h 第 28 行定义.

成员函数说明

◆ build()

bool eve::fluids::SurfaceWetnessField::build ( const FluidSurfaceBinding &  binding)

Initialize the field from a surface topology.

在文件 SurfaceWetnessField.cpp 第 8 行定义.

引用了 a, b, binding, edge , 以及 ids.

◆ clear()

void eve::fluids::SurfaceWetnessField::clear ( )

Reset all wetness to zero.

在文件 SurfaceWetnessField.cpp 第 67 行定义.

◆ deposit()

void eve::fluids::SurfaceWetnessField::deposit ( const SurfaceLocation &  location,
float  amount 
)

Deposit a wet trace at a material-space location.

在文件 SurfaceWetnessField.cpp 第 32 行定义.

引用了 bary, eve::fluids::SurfaceLocation::barycentric , 以及 eve::fluids::SurfaceLocation::triangle.

◆ sample()

float eve::fluids::SurfaceWetnessField::sample ( const SurfaceLocation &  location) const

Sample.

返回
interpolated wetness at a surface location.

在文件 SurfaceWetnessField.cpp 第 60 行定义.

引用了 eve::fluids::SurfaceLocation::barycentric , 以及 eve::fluids::SurfaceLocation::triangle.

◆ step()

void eve::fluids::SurfaceWetnessField::step ( float  dt,
const SurfaceWetnessParams &  params = {} 
)

Diffuse and evaporate the field by dt seconds.

在文件 SurfaceWetnessField.cpp 第 41 行定义.

引用了 a, b, maximum, params, size , 以及 value.

◆ values()

const std::vector< float > & eve::fluids::SurfaceWetnessField::values ( ) const
inline

Values.

返回
per-vertex wetness values for rendering or debugging.

在文件 SurfaceWetnessField.h 第 45 行定义.


该类的文档由以下文件生成: