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

Typed procedural mesh graph composing grid, point and topology domains. 更多...

#include <MeshGraph.h>

Public 成员函数

Result< void > addNode (std::string id, std::string operation)
 Adds node.
 
Result< void > connect (std::string_view fromId, std::string_view toId, int inputIndex=0)
 Connect.
 
Result< void > setNodeGrid (std::string_view id, const Grid2D &value)
 Sets the node grid.
 
Result< void > setNodePoints (std::string_view id, const PointSet &value)
 Sets the node points.
 
Result< void > setNodeMesh (std::string_view id, const MeshBuild &value)
 Sets the node mesh.
 
Result< void > setNodeFloat (std::string_view id, std::string key, float value)
 Sets the node float.
 
Result< void > setNodeString (std::string_view id, std::string key, std::string value)
 Sets the node string.
 
Result< MeshBuild > execute (std::string_view outputId)
 Execute.
 
Result< void > validate (std::string_view outputId) const
 Validate.
 
void clearCache ()
 Clears cache.
 
std::uint64_t revision () const noexcept
 Revision.
 
std::string serializeDefinition () const
 Serialize topology and scalar parameters using the versioned EVPCG mesh schema.
 
Result< void > deserializeDefinition (std::string_view definition)
 Atomically replace this graph from a versioned definition. Runtime input values are not persisted.
 

详细描述

Typed procedural mesh graph composing grid, point and topology domains.

在文件 MeshGraph.h 第 21 行定义.

成员函数说明

◆ addNode()

Result< void > eve::procgen::MeshGraph::addNode ( std::string  id,
std::string  operation 
)

◆ clearCache()

void eve::procgen::MeshGraph::clearCache ( )

Clears cache.

在文件 MeshGraph.cpp 第 288 行定义.

引用了 node.

被这些函数引用 eve::procgen::exposeGridMeshGraphs().

◆ connect()

Result< void > eve::procgen::MeshGraph::connect ( std::string_view  fromId,
std::string_view  toId,
int  inputIndex = 0 
)

◆ deserializeDefinition()

Result< void > eve::procgen::MeshGraph::deserializeDefinition ( std::string_view  definition)

Atomically replace this graph from a versioned definition. Runtime input values are not persisted.

在文件 MeshGraph.cpp 第 335 行定义.

引用了 addNode(), eve::Conflict, connect(), ended, eve::Diagnostic::error(), eve::Result< T >::failure(), found, id, input, key, kind, line, eve::NotFound, operation, eve::ParseError, setNodeFloat(), setNodeString(), eve::Result< T >::success(), target , 以及 value.

◆ execute()

Result< MeshBuild > eve::procgen::MeshGraph::execute ( std::string_view  outputId)

Execute.

@cost Linear in emitted vertices and indices; point instancing multiplies source mesh cost by point count.

在文件 MeshGraph.cpp 第 270 行定义.

引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), mesh, eve::Result< T >::success(), eve::TypeMismatch , 以及 value.

被这些函数引用 validate().

◆ revision()

std::uint64_t eve::procgen::MeshGraph::revision ( ) const
inlinenoexcept

Revision.

在文件 MeshGraph.h 第 45 行定义.

◆ serializeDefinition()

std::string eve::procgen::MeshGraph::serializeDefinition ( ) const

Serialize topology and scalar parameters using the versioned EVPCG mesh schema.

在文件 MeshGraph.cpp 第 307 行定义.

引用了 input, key, node , 以及 value.

被这些函数引用 eve::procgen::exposeGridMeshGraphs().

◆ setNodeFloat()

Result< void > eve::procgen::MeshGraph::setNodeFloat ( std::string_view  id,
std::string  key,
float  value 
)

◆ setNodeGrid()

Result< void > eve::procgen::MeshGraph::setNodeGrid ( std::string_view  id,
const Grid2D &  value 
)

◆ setNodeMesh()

Result< void > eve::procgen::MeshGraph::setNodeMesh ( std::string_view  id,
const MeshBuild &  value 
)

◆ setNodePoints()

Result< void > eve::procgen::MeshGraph::setNodePoints ( std::string_view  id,
const PointSet &  value 
)

◆ setNodeString()

Result< void > eve::procgen::MeshGraph::setNodeString ( std::string_view  id,
std::string  key,
std::string  value 
)

◆ validate()

Result< void > eve::procgen::MeshGraph::validate ( std::string_view  outputId) const

Validate.

在文件 MeshGraph.cpp 第 281 行定义.

引用了 execute(), eve::Result< T >::failure() , 以及 eve::Result< T >::success().


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