Main Page | Class Hierarchy | Alphabetical List | Compound List | Compound Members

# IRdMaterialIndexStream Struct Reference

Inherits IDispatch.

List of all members.

## Public Member Functions
RtDWORD | GetNumMaterialIndices (void)
HRESULT | SetNumMaterialIndices ([in] RtDWORD dwNumMaterialIndices)
HRESULT | index ([in] RtDWORD dwIndex,[out, retval] RtDWORD *index)
HRESULT | index ([in] RtDWORD dwIndex,[in] RtDWORD index)

## Detailed Description

IRdMaterialIndexStream holds per-triangle material indices.

The stream is part of IRdMesh and is stored in Triangle stream group. Stream is identified by STREAMID_TRIANGLES_MATINDEX id.

## Member Function Documentation

RtDWORD IRdMaterialIndexStream::GetNumMaterialIndices | ( | void |  | ) |

| Get number of triangles Returns: standard HRESULT processing can be applied to returned value

HRESULT IRdMaterialIndexStream::SetNumMaterialIndices | ( | [in] RtDWORD | dwNumMaterialIndices | ) |

| Set number of triangles Returns: standard HRESULT processing can be applied to returned value

HRESULT IRdMaterialIndexStream::index | ( | [in] RtDWORD | dwIndex,
|  | [out, retval] RtDWORD * | index
| ) |

  | Get material index for i-th triangle Parameters:
  dwIndex | Triangle index
  index | Material index
Returns: standard HRESULT processing can be applied to returned value

HRESULT IRdMaterialIndexStream::index | ( | [in] RtDWORD | dwIndex,
|  | [in] RtDWORD | index
| ) |

  | Set material index for i-th triangle Parameters:
  dwIndex | Triangle index
  index | Material index
Returns: standard HRESULT processing can be applied to returned value