# IRdSkinWeightDirect Interface Reference

Inherits IDispatch.

List of all members.

## Public Member Functions
HRESULT | GetNumSkinWeights ([out, retval] RtDWORD *dwNumRecords)
HRESULT | SetNumSkinWeights ([in] RtDWORD dwNumRecords)
## Properties
RtFloat * | weight ([in] RtDWORD dwIndex)`[get]`
RtFloat | weight ([in] RtDWORD dwIndex)`[set]`

## Detailed Description

IRdSkinWeightDirect: skin weights for each vertex.

- If skin weight = 0, bone does not have influence on the vertex.

## Member Function Documentation

HRESULT IRdSkinWeightDirect::GetNumSkinWeights | ( | [out, retval] RtDWORD * | dwNumRecords | ) |

Get number of vertices.

Returns:
  dwNumRecords [out,retval] Eack SkinWeight record represents a vertex; count records = vertices count.

  standard HRESULT processing can be applied to returned value.

HRESULT IRdSkinWeightDirect::SetNumSkinWeights | ( | [in] RtDWORD | dwNumRecords | ) |

Set number of vertices.

Parameters:

  | dwNumRecords | [in] Set number of records to set number of vertices.

Returns:
  standard HRESULT processing can be applied to returned value.

## Property Documentation

RtFloat* IRdSkinWeightDirect::weight([in] RtDWORD dwIndex)`[get]`

Get weight for i-th vertex.

Parameters:

  | dwIndex | [in] Vertex index.

Returns:
  pVal [out,retval] Retrived value from specified index.

  standard HRESULT processing can be applied to returned value.

RtFloat IRdSkinWeightDirect::weight([in] RtDWORD dwIndex)`[set]`

Set weight for i-th vertex.

Parameters:

  | dwIndex | [in] Vertex index.
  | newVal | [in] Weight to set for the vertex/record.

Returns:
  standard HRESULT processing can be applied to returned value.