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 ¶ms={}) |
| 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 | ) |
◆ 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 = {} |
||
| ) |
◆ values()
|
inline |
该类的文档由以下文件生成:
- src/modules/fluids/SurfaceWetnessField.h
- src/modules/fluids/SurfaceWetnessField.cpp