Convert all Polygons to Triangles in 3D Model
Contents
[
Hide
]
Using Aspose.3D for .NET API, developers can convert all polygons to triangles in any supported 3D file.
Convert All Polygons to Triangles
We have added another overload of Triangulate method in the PolygonModifier class which takes a Scene class object as a parameter as shown in this code example:
// For complete examples and data files, please go to https://github.com/aspose-3d/Aspose.3D-for-.NET
// Load an existing 3D file
Scene scene = Scene.FromFile("document.fbx");
// Triangulate a scene
PolygonModifier.Triangulate(scene);
// Save 3D scene
scene.Save("triangulated_out.fbx");