Cريت Pأوليغون In Msh
Contents
[
Hide
]
Cريت Pأوليغون In Msh
Aspose.3D for Java يسمح بإنشاء مضلع في شبكة. من أجل استخدام الوظيفة ، يقدم API طريقة CreatePأوليغون لفئة Mإيش. باستخدام طريقة CreatePolygon ، يمكنك إنشاء مضلع محسن Riريانجل أو Qواد دون تخصيص ذاكرة إضافية. يوضح مقتطف الرمز التالي كيفية استخدام هذه الوظيفة.
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
// For complete examples and data files, please go to https://github.com/aspose-3d/Aspose.3D-for-Java | |
// Initialize Mesh | |
Mesh mesh = new Mesh(); | |
//The old CreatePolygon needs to create a temporary array for holding the face indices | |
//mesh.createPolygon(new int[] { 0, 1, 2 }); | |
//The new overloads doesn't need extra allocation, and it's optimized internally. | |
mesh.createPolygon(0, 1, 2); | |
//Or You can create a polygon using 4 vertices(quad) | |
//mesh.CreatePolygon(0, 1, 2, 3); |