إنشاء مشهد بأشكال بدائية 3D
Contents
[
Hide
]
Aspose.3D for Java API يدعم الأشكال الأولية 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.
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
// The path to the documents directory. | |
String MyDir = RunExamples.getDataDir(); | |
// Initialize a Scene object | |
Scene scene = new Scene(); | |
// Create a Box model | |
scene.getRootNode().createChildNode("box", new Box()); | |
// Create a Cylinder model | |
scene.getRootNode().createChildNode("cylinder", new Cylinder()); | |
// Save drawing in the FBX format | |
MyDir = MyDir + RunExamples.getOutputFilePath("test.fbx"); | |
scene.save(MyDir, FileFormat.FBX7500ASCII); |