载入中...
搜索中...
未找到
eve::procgen::GtsMeshSplitResult类 参考

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 行定义.

引用了 index , 以及 tileAt().

◆ getColumnCount()

int eve::procgen::GtsMeshSplitResult::getColumnCount ( ) const
inlinenoexcept

Return the number of output columns.

在文件 GtsMeshSplitter.h 第 23 行定义.

◆ getRowCount()

int eve::procgen::GtsMeshSplitResult::getRowCount ( ) const
inlinenoexcept

Return the number of output rows.

在文件 GtsMeshSplitter.h 第 25 行定义.

◆ getTileCount()

int eve::procgen::GtsMeshSplitResult::getTileCount ( ) const
inlinenoexcept

Return the number of retained row-major cells.

在文件 GtsMeshSplitter.h 第 27 行定义.

◆ getTileOffsetX()

float eve::procgen::GtsMeshSplitResult::getTileOffsetX ( int  index) const
noexcept

Return the X offset that restores one translated tile to world space.

在文件 GtsMeshSplitter.cpp 第 64 行定义.

引用了 index.

◆ getTileOffsetZ()

float eve::procgen::GtsMeshSplitResult::getTileOffsetZ ( int  index) const
noexcept

Return the Z offset that restores one translated tile to world space.

在文件 GtsMeshSplitter.cpp 第 68 行定义.

引用了 index.

◆ tileAt()

const GtsMeshSplitTile * eve::procgen::GtsMeshSplitResult::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.

在文件 GtsMeshSplitter.cpp 第 57 行定义.

引用了 index.

被这些函数引用 copyTileMesh().

友元及相关函数文档

◆ splitGtsMesh

EVENGINE_API_DOMAINS Result< GtsMeshSplitResult > splitGtsMesh ( const MeshBuild &  ,
int  ,
int  ,
GtsMeshPivot   
)
friend

Split every source triangle against a regular X/Z grid like GTSMeshSplitter.

参数
sourceImmutable triangle mesh with aligned position, normal and UV streams.
xSplitsNumber of vertical split planes; output columns equal xSplits plus one.
zSplitsNumber of horizontal split planes; output rows equal zSplits plus one.
pivotOptional per-cell vertex translation with a matching restoration offset.
返回
Owned row-major cells; empty cells are retained.

在文件 GtsMeshSplitter.cpp 第 73 行定义.

◆ splitGtsMeshInto

Result< void > splitGtsMeshInto ( GtsMeshSplitResult &  ,
const MeshBuild &  ,
int  ,
int  ,
GtsMeshPivot   
)
friend

Atomically replace an owned result with a GTS mesh split.

在文件 GtsMeshSplitter.cpp 第 159 行定义.


该类的文档由以下文件生成: