إنشاء مشهد بأشكال بدائية 3D

بناء مشهد من أشكال بدائية 3D

Modeling is the process of pure creation and Aspose.3D API supports creating a scene with primitive 3D shapes.

Pروغرامينغ ple وافرة

هذا المثال البرمجي يُنشئ مشهد بأشكال 3D بدائية ويُحفظ في ملف FBX.

from aspose.threed import FileFormat, Scene
from aspose.threed.entities import Box, Cylinder

#  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 object
scene = Scene()
#  Create a Box model
scene.root_node.create_child_node("box", Box())
#  Create a Cylinder model
scene.root_node.create_child_node("cylinder", Cylinder())
#  Save drawing in the FBX format
output = "out"  + "test.fbx"
scene.save(output, FileFormat.FBX7500ASCII)