# IRdObjNamesIndexStream Interface Reference

Inherits IDispatch.

List of all members.

## Public Member Functions
HRESULT | GetNumIndices ([out, retval] RtDWORD *dwNumMaterialIndices)
HRESULT | SetNumIndices ([in] RtDWORD dwNumMaterialIndices)
## Properties
RtDWORD * | index ([in] RtDWORD dwIndex)`[get]`
RtDWORD | index ([in] RtDWORD dwIndex)`[set]`

## Detailed Description

IRdObjNamesIndexStream:

- Holds per-triangle indices to object name table.
- The stream is part of IRdMesh and is stored in Triangle stream group.
- Stream is identified by STREAMID_TRIANGLES_OBJNAMES id.

## Member Function Documentation

HRESULT IRdObjNamesIndexStream::GetNumIndices | ( | [out, retval] RtDWORD * | dwNumMaterialIndices | ) |

Get number of triangles.

Returns:
  dwNumMaterialIndices [out,retval] Returns number of triangles found.

  standard HRESULT processing can be applied to returned value

HRESULT IRdObjNamesIndexStream::SetNumIndices | ( | [in] RtDWORD | dwNumMaterialIndices | ) |

Set number of triangles.

Parameters:

  | dwNumMaterialIndices | [in] Number of triangles to set the stream to.

Returns:
  standard HRESULT processing can be applied to returned value

## Property Documentation

RtDWORD * IRdObjNamesIndexStream::index([in] RtDWORD dwIndex)`[get]`

Get id pointer for i-th triangle.

Parameters:

  | dwIndex | [in] Triangle index.

Returns:
  index [out, retval] Pointer to data stream.

  standard HRESULT processing can be applied to returned value.

RtDWORD IRdObjNamesIndexStream::index([in] RtDWORD dwIndex)`[set]`

Set id index for i-th triangle

Parameters:

  | dwIndex | [in] Triangle index.
  | index | [in] Pointer to data stream.

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