Owned ordered input plan for Pcg static MeshCombiner. 更多...
#include <PcgMeshLod.h>
Public 成员函数 | |
| Result< void > | appendSource (const MeshBuild &mesh, const PcgMeshTransform &transform, const std::string &defaultMaterialId) |
| Copy one readable mesh and root-relative affine transform into the plan. | |
| void | clear () noexcept |
| Remove every owned source. | |
| int | getSourceCount () const noexcept |
| Return the ordered source count. | |
友元 | |
| EVENGINE_API_DOMAINS Result< int > | combinePcgStaticMeshesInto (MeshBuild &, const PcgMeshCombinePlan &) |
| Combine static meshes with Pcg material deduplication and root-relative transforms. | |
详细描述
Owned ordered input plan for Pcg static MeshCombiner.
Meshes and matrices are copied on append. A source without triangle groups uses defaultMaterialId; grouped meshes use group names as stable material identities. No renderer, material object or callback is retained. Callers serialize mutation.
在文件 PcgMeshLod.h 第 64 行定义.
成员函数说明
◆ appendSource()
| Result< void > eve::procgen::PcgMeshCombinePlan::appendSource | ( | const MeshBuild & | mesh, |
| const PcgMeshTransform & | transform, | ||
| const std::string & | defaultMaterialId | ||
| ) |
Copy one readable mesh and root-relative affine transform into the plan.
在文件 PcgMeshLod.cpp 第 25 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), index, indices, eve::InvalidArgument, mesh, eve::Result< T >::success(), value , 以及 vertices.
◆ clear()
|
noexcept |
Remove every owned source.
在文件 PcgMeshLod.cpp 第 49 行定义.
◆ getSourceCount()
|
noexcept |
Return the ordered source count.
在文件 PcgMeshLod.cpp 第 50 行定义.
友元及相关函数文档
◆ combinePcgStaticMeshesInto
|
friend |
Combine static meshes with Pcg material deduplication and root-relative transforms.
- 参数
-
output Replaced only after all streams, material groups and budgets validate. plan Immutable owning source plan; output cannot alias its copied meshes.
- 返回
- Combined triangle count or a structured diagnostic without changing output. @thread Synchronous CPU operation; no callbacks or references are retained.
Declared ahead of the classes that friend it: the first declaration in a translation unit must carry the link-group macro, otherwise the friend declarations inside PcgMeshTransform/PcgMeshCombinePlan fix a different linkage and this dllexport declaration would be C2375.
在文件 PcgMeshLod.cpp 第 52 行定义.
该类的文档由以下文件生成:
- src/modules/procgen/PcgMeshLod.h
- src/modules/procgen/PcgMeshLod.cpp