保存 3D 文档
Contents
[
Hide
]
Aspose.3D API 的
Scene
类表示 3D 文档,开发人员可以将其对象保存为任何支持的文件格式。要保存 3D 场景,只需使用 Scene.save
方法,它接受具有完整路径的文件名或文件流对象。Aspose.3D API 提供另一个 FileFormat
参数来指定输出文件格式。
保存 3D 场景
下面的代码示例显示了如何将文档保存到流中。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import aspose.threed as a3d | |
import io | |
# For complete examples and data files, please go to https://github.com/aspose-3d/Aspose.3D-for-.NET | |
# Load a 3D document into Aspose.3D | |
scene = a3d.Scene.from_file("document.fbx") | |
# Save Scene to a stream | |
dstStream = io.BytesIO() | |
scene.save(dstStream, a3d.FileFormat.FBX7500ASCII); |