SkinInformation.ConvertToIndexedBlendedMesh Method |
Language: |
Takes an existing mesh and returns a new mesh with per-vertex blend weights, indices, and a bone combination table. The table describes which bone palettes affect which subsets of the mesh.
Visual Basic Public Function ConvertToIndexedBlendedMesh( _
ByVal mesh As Mesh, _
ByVal options As MeshFlags, _
ByVal adjacencyIn() As Integer, _
ByVal paletteSize As Integer, _
ByRef maxFaceInfluence As Integer, _
ByRef boneCombinationTable As BoneCombination _
) As MeshC# public Mesh ConvertToIndexedBlendedMesh(
Mesh mesh,
MeshFlags options,
int[] adjacencyIn,
int paletteSize,
out int maxFaceInfluence,
out BoneCombination boneCombinationTable
);C++ public:
Mesh^ ConvertToIndexedBlendedMesh(
Mesh^ mesh,
MeshFlags options,
array<int>^ adjacencyIn,
int paletteSize,
[Out] int% maxFaceInfluence,
[Out] BoneCombination% boneCombinationTable
);JScript public function ConvertToIndexedBlendedMesh(
mesh : Mesh,
options : MeshFlags,
adjacencyIn : int[],
paletteSize : int,
maxFaceInfluence : int,
boneCombinationTable : BoneCombination
) : Mesh;
mesh Microsoft.DirectX.Direct3D.Mesh
Source Mesh.options Microsoft.DirectX.Direct3D.MeshFlags
A MeshFlags object that specifies creation options for the new mesh.adjacencyIn System.Int32[]
Array that contains the input mesh adjacency information.paletteSize System.Int32
Value that contains the number of bone matrices available for matrix palette skinning.maxFaceInfluence System.Int32
Value that contains the maximum number of bone influences required per vertex for the current skinning method.boneCombinationTable Microsoft.DirectX.Direct3D.BoneCombination[]
Array of BoneCombination objects.
Microsoft.DirectX.Direct3D.Mesh
A Mesh object that represents the new mesh.
Each element in the remap arrays specifies the previous index for that position. For example, if a vertex is in position 3 but is remapped to position 5, the fifth element of vertexRemap contains 3.
Exceptions
InvalidCallException The method call is invalid. For example, a method's parameter might contain an invalid value.
Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center