Skip to content

@modoki/engine / index / dominantBoneField

Function: dominantBoneField()

dominantBoneField(skinIndices, skinWeights, vertCount): number[]

Per-vertex DOMINANT bone (the index of each vertex's highest-weight influence) — for a whole-rig influence segmentation view (color each vertex by which bone owns it most). Accepts the rig's packed typed arrays.

Parameters

skinIndices

ArrayLike<number>

skinWeights

ArrayLike<number>

vertCount

number

Returns

number[]

Built with Modoki.