Build Tangent and Binormal Data for all Meshes in 3D Model
Contents
[
Hide
]
Using Aspose.3D for Python via .NET API, developers can build tangent and binormal data for all meshes in any supported 3D file.
Build Tangent and Binormal data for Mesh
We have added two BuildTangentBinormal methods in the PolygonModifier class. One method takes a Scene class object as a parameter and another one takes a Mesh class object as a parameter as shown in this code example:
from aspose.threed import FileFormat, Scene
from aspose.threed.entities import PolygonModifier
# 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("data-dir" + "document.fbx")
# Triangulate a scene
PolygonModifier.build_tangent_binormal(scene)
# Save 3D scene
scene.save("out" + "BuildTangentAndBinormalData_out.fbx", FileFormat.FBX7400ASCII)