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.
public sealed class BoneRemapTableInheritance
object ← BoneRemapTable
Constructors
BoneRemapTable(KVObject)
Initializes a bone remap table from a compiled model's data block.
public BoneRemapTable(KVObject data)Parameters
data KVObject
Properties
MeshCount
Gets the number of meshes the table has a slice for.
public int MeshCount { get; }Property Value
int
Table
Gets every mesh bone's skeleton bone index, all meshes concatenated. A mesh indexes its own slice rather than this.
public ReadOnlyMemory<int> Table { get; }Property Value
ReadOnlyMemory<int>
Methods
GetMeshBoneCount(int)
Gets how many bones a mesh addresses, or zero when the mesh has no slice.
public int GetMeshBoneCount(int meshIndex)Parameters
meshIndex int
Returns
int
GetMeshStart(int)
Gets where a mesh's bones start in BoneRemapTable.Table, or zero when the mesh has no slice.
public int GetMeshStart(int meshIndex)Parameters
meshIndex int
Returns
int
GetMeshTable(int)
Gets a mesh's own slice of the table, or null when the mesh has no slice.
public int[]? GetMeshTable(int meshIndex)Parameters
meshIndex int
Returns
int[]?

