跳到主要内容

replay_graph

类型: 函数
领域: Graph、序列化与重放
推荐导入: from cadflow import replay_graph

签名

def replay_graph(graph: 'OperationGraph', *, strict: 'bool' = True) -> 'List[Any]'

功能说明

replay_graph 是 CadFlow Graph、序列化与重放领域的公共函数。

原始 API 说明

Replay an OperationGraph to rebuild the model.

Executes nodes in topological order. Primitives are created from their parameters; boolean operations consume upstream outputs.

参数

名称类型必需默认值源码说明
graph'OperationGraph'-The graph to replay.
strict'bool'True源码 Docstring 未单独说明。

返回值

类型: 'List[Any]'

List of leaf-node outputs. These may be solids, faces, wires, edges, or vertices depending on the workflow.

异常

源码 Docstring 未声明更窄的异常契约。类型、数值、所有权、路径或后端状态无效时,仍可能抛出相应公共异常。

行为与约束

  • 以下契约由当前公共运行时签名生成;所有权与工作流限制见对应领域说明。

导入检查

from cadflow import replay_graph

相关内容