# IRdHairLengthStream Interface Reference

Inherits IDispatch.

List of all members.

## Public Member Functions
HRESULT | GetNumVertices ([out, retval] RtDWORD *pdwNumVertices)
HRESULT | SetNumVertices ([in] RtDWORD dwNumVertices)
## Properties
RtFloat * | length ([in] RtDWORD dwIndex)`[get]`
RtFloat | length ([in] RtDWORD dwIndex)`[set]`

## Detailed Description

IRdHairLengthStream:

- Specifies hair length for vertices of mesh.
- The stream is part of IRdMesh and is stored in vertex stream group.
- Stream is identified by STREAMID_VERTEX_HAIRLENGTH id.

## Member Function Documentation

HRESULT IRdHairLengthStream::GetNumVertices | ( | [out, retval] RtDWORD * | pdwNumVertices | ) |

Get number of vertices.

Returns:
  pdwNumVertices [out,retval] Returns number of vertices found in stream.

  standard HRESULT processing can be applied to returned value.

HRESULT IRdHairLengthStream::SetNumVertices | ( | [in] RtDWORD | dwNumVertices | ) |

Set number of vertices.

Parameters:

  | dwNumVertices | [in] Value to set for number of vertices in stream.

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

## Property Documentation

RtFloat* IRdHairLengthStream::length([in] RtDWORD dwIndex)`[get]`

Get length of hair at i-th vertex.

Parameters:

  | dwIndex | [in] Vertex index.

Returns:
  pVal [out, retval] Returns value for hair length at vertex.

  standard HRESULT processing can be applied to returned value.

RtFloat IRdHairLengthStream::length([in] RtDWORD dwIndex)`[set]`

Set length of hair at i-th vertex.

Parameters:

  | dwIndex | [in] Vertex index.
  | newVal | [in] Hair length value to set for vertex.

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