Tüm poligonları 3D modelinde üçgenlere dönüştürün
Contents
[
Hide
]
Aspose.3D for Java API tüm poligonları desteklenen herhangi bir 3D belgesinde üçgenlere dönüştürme desteğine sahiptir.
Tonvert tüm olyolygons Triangles
Bu kod örneğinde gösterildiği gibi bir parametre olarak Scene
sınıf nesnesini alan PolygonModifier
sınıfında başka bir triangulate yöntemi aşırı yükledik:
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
// The path to the documents directory. | |
String MyDir = RunExamples.getDataDir(); | |
// Load an existing 3D file | |
Scene scene = new Scene(MyDir + "document.fbx"); | |
// Triangulate a scene | |
PolygonModifier.triangulate(scene); | |
// Save 3D scene | |
scene.save(MyDir + "triangulated_out.fbx", FileFormat.FBX7400ASCII); |