Skip to content

Commit

Permalink
[MeshSetPlugin] WIP composite mesh importing support (#262)
Browse files Browse the repository at this point in the history
  • Loading branch information
BreakfastBrainz2 authored Jun 21, 2023
1 parent 7fafbdf commit be93dbf
Show file tree
Hide file tree
Showing 4 changed files with 443 additions and 85 deletions.
8 changes: 8 additions & 0 deletions Plugins/MeshSetPlugin/Fbx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1441,6 +1441,9 @@ internal class FbxMesh : FbxGeometry
[DllImport("thirdparty/libfbxsdk", EntryPoint = "?GetPolygonVertex@FbxMesh@fbxsdk@@QEBAHHH@Z")]
private static extern int GetPolygonIndexInternal(IntPtr handle, int pPolygonIndex, int pPositionInPolygon);

[DllImport("thirdparty/libfbxsdk", EntryPoint = "?GetPolygonVertexIndex@FbxMesh@fbxsdk@@QEBAHH@Z")]
private static extern int GetPolygonVertexIndexInternal(IntPtr handle, int pPolygonIndex);

[DllImport("thirdparty/libfbxsdk", EntryPoint = "?IsTriangleMesh@FbxMesh@fbxsdk@@QEBA_NXZ")]
private static extern bool IsTriangleMeshInternal(IntPtr handle);

Expand Down Expand Up @@ -1511,6 +1514,11 @@ public int GetPolygonIndex(int index, int position)
return GetPolygonIndexInternal(pHandle, index, position);
}

public int GetPolygonVertexIndex(int index)
{
return GetPolygonVertexIndexInternal(pHandle, index);
}

public bool IsTriangleMesh()
{
return IsTriangleMeshInternal(pHandle);
Expand Down
Loading

0 comments on commit be93dbf

Please sign in to comment.