Cمعلقة lane لين O
Contents
[
Hide
]
Tويدعم ميزة له من قبل الإصدار 19.5 أو أكبر.
Cمعلقة lane لين O
Aspose.3D for Java يسمح بتغيير اتجاه المشهد. لتغيير الاتجاه ، يتم تقديم طرق getUp()
و setUp()
في فئة Plane
. يظهر مقتطف الكود التالي كيفية تغيير اتجاه الطائرة:
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
// For complete examples and data files, please go to https://github.com/aspose-3d/Aspose.3D-for-Java | |
// The path to the documents directory. | |
String MyDir = RunExamples.getDataDir(); | |
// Initialize Scene | |
Scene scene = new Scene(); | |
// Initialize Plane | |
Plane plane = new Plane(); | |
// Set Vector | |
plane.setUp(new Vector3(1, 1, 3)); | |
scene.getRootNode().createChildNode(plane); | |
//This will generate a plane that has customized orientation | |
scene.save(MyDir+"ChangePlaneOrientation.obj", FileFormat.WAVEFRONTOBJ); |