diff --git a/ManagedFbx/Mesh.cpp b/ManagedFbx/Mesh.cpp index 0a6a19e..8818b98 100644 --- a/ManagedFbx/Mesh.cpp +++ b/ManagedFbx/Mesh.cpp @@ -85,4 +85,11 @@ array ^Mesh::TextureCoords::get() int Mesh::GetUVIndex(int polygon, int index) { return m_nativeMesh->GetTextureUVIndex(polygon, index); +} + +Vector3 Mesh::GetVertexNormal(int polygon, int index) +{ + FbxVector4 normal; + m_nativeMesh->GetPolygonVertexNormal(polygon, index, normal); + return Vector3(normal); } \ No newline at end of file diff --git a/ManagedFbx/Mesh.h b/ManagedFbx/Mesh.h index ec35b1d..edf3f5d 100644 --- a/ManagedFbx/Mesh.h +++ b/ManagedFbx/Mesh.h @@ -16,6 +16,7 @@ namespace ManagedFbx Mesh ^Triangulate(); int GetUVIndex(int polygon, int index); + Vector3 GetVertexNormal(int polygon, int index); internal: Mesh(FbxMesh *nativeMesh);