GltfExporter
概述
GltfExporter 是 Aspose.3D FOSS 中用于 Python 的类。继承自:Exporter。
GltfExporter 可以将场景导出为 glTF 格式,并首先使用 supports_format(file_format)检查支持情况。
此类为 Python 程序中的 GltfExporter 对象声明了 5 个方法。可用的方法包括:__init__、export、supports_format、visit_node。在安装 Aspose.3D FOSS for Python 包后,所有公共成员均可被任何 Python 应用访问。
方法
| 签名 | 描述 |
|---|---|
__init__() | Calls init 在此 GltfExporter 实例上。 |
supports_format(file_format) → bool | 在此 GltfExporter 实例上调用 supports_format(file_format)。 |
export(scene: 'Scene', stream, options: 'SaveOptions') | 在此 GltfExporter 实例上调用 export(scene, stream, options)。 |
visit_node(node) | 在导出期间遍历场景层次结构时处理单个节点。 |
supports_format(file_format: 'FileFormat') → bool | 在 FOSS 版中未实现 — 在运行时抛出。 在此 GltfExporter 实例上调用 supports_format(file_format)。 |