Owned row-major result of a GTS X/Z plane split. 更多...
#include <GtsMeshSplitter.h>
Public 成员函数 | |
| int | getColumnCount () const noexcept |
| Return the number of output columns. | |
| int | getRowCount () const noexcept |
| Return the number of output rows. | |
| int | getTileCount () const noexcept |
| Return the number of retained row-major cells. | |
| const GtsMeshSplitTile * | tileAt (int index) const noexcept |
| Borrow one indexed tile. @ownership This result retains ownership; the caller must not delete the pointer. @lifetime Valid until this result is destroyed or replaced by another split. | |
| std::unique_ptr< MeshBuild > | copyTileMesh (int index) const |
| Copy one tile mesh for independent ownership, or null for an invalid index. | |
| float | getTileOffsetX (int index) const noexcept |
| Return the X offset that restores one translated tile to world space. | |
| float | getTileOffsetZ (int index) const noexcept |
| Return the Z offset that restores one translated tile to world space. | |
友元 | |
| EVENGINE_API_DOMAINS Result< GtsMeshSplitResult > | splitGtsMesh (const MeshBuild &, int, int, GtsMeshPivot) |
| Split every source triangle against a regular X/Z grid like GTSMeshSplitter. | |
| Result< void > | splitGtsMeshInto (GtsMeshSplitResult &, const MeshBuild &, int, int, GtsMeshPivot) |
| Atomically replace an owned result with a GTS mesh split. | |
详细描述
Owned row-major result of a GTS X/Z plane split.
在文件 GtsMeshSplitter.h 第 20 行定义.
成员函数说明
◆ copyTileMesh()
| std::unique_ptr< MeshBuild > eve::procgen::GtsMeshSplitResult::copyTileMesh | ( | int | index | ) | const |
Copy one tile mesh for independent ownership, or null for an invalid index.
在文件 GtsMeshSplitter.cpp 第 60 行定义.
◆ getColumnCount()
|
inlinenoexcept |
Return the number of output columns.
在文件 GtsMeshSplitter.h 第 23 行定义.
◆ getRowCount()
|
inlinenoexcept |
Return the number of output rows.
在文件 GtsMeshSplitter.h 第 25 行定义.
◆ getTileCount()
|
inlinenoexcept |
Return the number of retained row-major cells.
在文件 GtsMeshSplitter.h 第 27 行定义.
◆ getTileOffsetX()
|
noexcept |
Return the X offset that restores one translated tile to world space.
在文件 GtsMeshSplitter.cpp 第 64 行定义.
引用了 index.
◆ getTileOffsetZ()
|
noexcept |
Return the Z offset that restores one translated tile to world space.
在文件 GtsMeshSplitter.cpp 第 68 行定义.
引用了 index.
◆ tileAt()
|
noexcept |
Borrow one indexed tile. @ownership This result retains ownership; the caller must not delete the pointer. @lifetime Valid until this result is destroyed or replaced by another split.
在文件 GtsMeshSplitter.cpp 第 57 行定义.
引用了 index.
被这些函数引用 copyTileMesh().
友元及相关函数文档
◆ splitGtsMesh
|
friend |
Split every source triangle against a regular X/Z grid like GTSMeshSplitter.
- 参数
-
source Immutable triangle mesh with aligned position, normal and UV streams. xSplits Number of vertical split planes; output columns equal xSplits plus one. zSplits Number of horizontal split planes; output rows equal zSplits plus one. pivot Optional per-cell vertex translation with a matching restoration offset.
- 返回
- Owned row-major cells; empty cells are retained.
在文件 GtsMeshSplitter.cpp 第 73 行定义.
◆ splitGtsMeshInto
|
friend |
Atomically replace an owned result with a GTS mesh split.
在文件 GtsMeshSplitter.cpp 第 159 行定义.
该类的文档由以下文件生成:
- src/modules/procgen/GtsMeshSplitter.h
- src/modules/procgen/GtsMeshSplitter.cpp