Backend-neutral, owning result of deterministic soft-body cooking. 更多...
#include <SoftBodyModel.h>
Public 成员函数 | |
| eve::Result< void > | validate () const |
| Validate all finite values, topology indices, bindings and clusters. | |
Public 属性 | |
| std::string | sourceMesh |
| std::vector< SoftBodyModelParticle > | particles |
| std::vector< std::uint32_t > | surfaceIndices |
| std::vector< SoftBodyModelSurfaceBinding > | surfaceBindings |
| std::vector< SoftBodyModelCluster > | clusters |
静态 Public 属性 | |
| static constexpr std::uint32_t | FormatVersion = 1 |
详细描述
Backend-neutral, owning result of deterministic soft-body cooking.
The model owns all arrays and retains no pointers into an asset archive. It may be moved between worker and simulation threads before publication; after publication callers should treat it as immutable.
在文件 SoftBodyModel.h 第 37 行定义.
成员函数说明
◆ validate()
| eve::Result< void > eve::physics::SoftBodyModel::validate | ( | ) | const |
Validate all finite values, topology indices, bindings and clusters.
在文件 SoftBodyModel.cpp 第 8 行定义.
引用了 binding, clusters, eve::Diagnostic::error(), eve::Result< T >::failure(), index, eve::InvalidArgument, particles, sourceMesh, eve::Result< T >::success(), surfaceBindings , 以及 surfaceIndices.
类成员变量说明
◆ clusters
| std::vector<SoftBodyModelCluster> eve::physics::SoftBodyModel::clusters |
在文件 SoftBodyModel.h 第 44 行定义.
被这些函数引用 validate().
◆ FormatVersion
|
staticconstexpr |
在文件 SoftBodyModel.h 第 38 行定义.
◆ particles
| std::vector<SoftBodyModelParticle> eve::physics::SoftBodyModel::particles |
在文件 SoftBodyModel.h 第 41 行定义.
被这些函数引用 validate().
◆ sourceMesh
| std::string eve::physics::SoftBodyModel::sourceMesh |
在文件 SoftBodyModel.h 第 40 行定义.
被这些函数引用 eve::physics::softbody_cook::cookSoftBodyModel() , 以及 validate().
◆ surfaceBindings
| std::vector<SoftBodyModelSurfaceBinding> eve::physics::SoftBodyModel::surfaceBindings |
在文件 SoftBodyModel.h 第 43 行定义.
被这些函数引用 validate().
◆ surfaceIndices
| std::vector<std::uint32_t> eve::physics::SoftBodyModel::surfaceIndices |
在文件 SoftBodyModel.h 第 42 行定义.
被这些函数引用 validate().
该结构体的文档由以下文件生成:
- src/modules/physics/softbody/SoftBodyModel.h
- src/modules/physics/softbody/SoftBodyModel.cpp