Mevcut bir 3D sahne oluşturun ve okuyun
Contents
[
Hide
]
Boş bir 3D sahne oluşturun ve desteklenen 3D dosya formatlarında kaydedin
Aspose.3D API yeni 3D sahnelerini sıfırdan oluşturmayı ve ardından desteklenen herhangi bir dosya biçiminde kaydetmeyi destekler. Geliştiriciler ayrıca değişiklik, ekleme veya işleme amaçları için mevcut bir 3D sahne yükleyebilir.
3D sahne belgesi oluşturma
Aspose kullanarak 3D sahne belgesi oluşturmak için lütfen bu adımları izleyin. 3D apis:
- 3D sahne belgesini temsil eden
Scene
sınıfının bir örneğini oluşturun. - Generate a 3D Scene document by calling the
Save
method of the Scene class object.
3D sahne belgesi oluşturma: programlama örnekleri
This file contains hidden or 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 | |
# For complete examples and data files, please go to https://github.com/aspose-3d/Aspose.3D-for-.NET | |
# The path to the documents directory. | |
# Create an object of the Scene class | |
scene = a3d.Scene() | |
# Save 3D scene document | |
scene.Save("document.fbx", a3d.FileFormat.FBX7500ASCII) |
3D sahnesini okumak
Using Aspose.3D API, developers can load all the supported 3D documents. The available constructors of the SahneSınıf bunu yapmaya izin verir ve geçerli bir dosya yolu dizesini kabul ederler. To okunabilir dosya formatlarını aşağıdaki gibi destekledi:
- FBX 7.7 (ascii, İkili)
- FBX 7.6 (ascii, ikili)
- FBX 7.5 (ascii, ikili)
- FBX 7.4 (ascii, ikili)
- FBX 7.3 (ascii, İkili)
- FBX 7.2 (ascii, ikili)
- STL (ascii, ikili)
- WavefrontOBJ
- Discreet3DS
- Universal3D
- Collada
- glTF
- DXF
- PLY (ascii, ikili)
- X (ASCI I, Binary)
- XYZ
- Draco
- 3MF
- RVM (metin, ikili)
- ASE
- USDZ
- USD
Constructors of the Scene
class detect 3D document format internally.
3D sahne okuma: programlama örnekleri
This file contains hidden or 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 | |
# For complete examples and data files, please go to https://github.com/aspose-3d/Aspose.3D-for-.NET | |
# The path to the documents directory. | |
# Initialize a Scene class object | |
scene = Scene() | |
# Load an existing 3D document | |
scene.open("document.fbx") | |