载入中...
搜索中...
未找到
eve::physics::softbody_cook 命名空间参考
函数 | |
| eve::Result< SoftBodyModel > | cookSoftBodyModel (const eve::asset::CanonicalMeshData &mesh, const SoftBodyModelDefinition &definition) |
| Cook an owning canonical mesh snapshot into a validated soft-body model. | |
函数说明
◆ cookSoftBodyModel()
| EVENGINE_API_WORLD eve::Result< SoftBodyModel > eve::physics::softbody_cook::cookSoftBodyModel | ( | const eve::asset::CanonicalMeshData & | mesh, |
| const SoftBodyModelDefinition & | definition | ||
| ) |
Cook an owning canonical mesh snapshot into a validated soft-body model.
- 参数
-
mesh Borrowed immutable mesh, retained only for this synchronous call. definition Validated recipe whose sourceMesh becomes model provenance.
- 返回
- Complete validated model, or a checked diagnostic; no partial model escapes. @thread Worker-safe and reentrant; performs no IO, callbacks or global mutation.
在文件 SoftBodyModelCooker.cpp 第 12 行定义.
引用了 a, b, c, center, eve::Diagnostic::error(), eve::Result< T >::failure(), index, eve::InvalidArgument, mesh, model, eve::physics::None, eve::physics::SoftBodyModelCluster::particleIndices, eve::physics::SoftBodyModel::sourceMesh, eve::Result< T >::success(), triangle, eve::Unsupported, vertexCount, eve::physics::Vertices, x, y , 以及 z.