Save a 3D Document
Contents
[
Hide
]
The
Scene
class of the Aspose.3D API represents a 3D document and developers can save its object in any supported file format. To save a 3D Scene, simply use the Scene.save
method, it accepts a file name with complete path or a file stream object. Aspose.3D API offers another FileFormat
parameter to specify output file format.
Save a 3D Scene
The code sample below shows how to save a document to a stream.
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); |