Class BoneRemapTable
Namespace: ValveResourceFormat.ResourceTypes.ModelData
Assembly: ValveResourceFormat.dll
Maps the bone indices a mesh's BLENDINDICES carry to bone indices of the model skeleton. Every mesh owns a contiguous slice of one table.
csharp
public sealed class BoneRemapTableInheritance
Constructors
BoneRemapTable(KVObject)
Initializes a bone remap table from a compiled model's data block.
csharp
public BoneRemapTable(KVObject data)Parameters
data KVObject
Properties
MeshCount
Gets the number of meshes the table has a slice for.
csharp
public int MeshCount { get; }Property Value
Table
Gets every mesh bone's skeleton bone index, all meshes concatenated. A mesh indexes its own slice rather than this.
csharp
public ReadOnlyMemory<int> Table { get; }Property Value
Methods
GetMeshBoneCount(int)
Gets how many bones a mesh addresses, or zero when the mesh has no slice.
csharp
public int GetMeshBoneCount(int meshIndex)Parameters
meshIndex int
Returns
GetMeshStart(int)
Gets where a mesh's bones start in , or zero when the mesh has no slice.
csharp
public int GetMeshStart(int meshIndex)Parameters
meshIndex int
Returns
GetMeshTable(int)
Gets a mesh's own slice of the table, or null when the mesh has no slice.
csharp
public int[]? GetMeshTable(int meshIndex)Parameters
meshIndex int
Returns
int[]?

