Skip to content

Commit

Permalink
Exposed GetVertexNormal
Browse files Browse the repository at this point in the history
  • Loading branch information
returnString committed Jul 18, 2012
1 parent 68bc130 commit 3b9e7da
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ManagedFbx/Mesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,11 @@ array<Vector2> ^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);
}
1 change: 1 addition & 0 deletions ManagedFbx/Mesh.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ namespace ManagedFbx

Mesh ^Triangulate();
int GetUVIndex(int polygon, int index);
Vector3 GetVertexNormal(int polygon, int index);

internal:
Mesh(FbxMesh *nativeMesh);
Expand Down

0 comments on commit 3b9e7da

Please sign in to comment.