# IRdHairDensityStream Interface Reference

Inherits IDispatch.

List of all members.

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

## Detailed Description

IRdHairDensityStream:

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

## Member Function Documentation

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

Get number of vertices.

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

  standard HRESULT processing can be applied to returned value.

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

Set number of vertices.

Parameters:

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

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

## Property Documentation

RtFloat* IRdHairDensityStream::density([in] RtDWORD dwIndex)`[get]`

Get density of hair at i-th vertex.

Parameters:

  | dwIndex | [in] Vertex index.
  | pVal | [out,retval] Returns the hair density value for the vertex.

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

RtFloat IRdHairDensityStream::density([in] RtDWORD dwIndex)`[set]`

Set density of hair at i-th vertex.

Parameters:

  | dwIndex | [in] Vertex index.
  | newVal | [in] Value for density to set for the vertex.

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