# IRdVertexTopologyInfo Interface Reference

Inherits IDispatch.

List of all members.

## Public Member Functions
HRESULT | GetNumVertices ([out, retval] RtDWORD *pCount)
HRESULT | SetNumVertices ([in] RtDWORD dwNumVertices)
## Properties
RtUlong * | Count ([in] RtDWORD dwIndex)`[get]`
RtUlong * | Index ([in] RtDWORD dwIndex)`[get]`

## Detailed Description

IRdVertexTopologyInfo is one of two temporary stream that holds vertex topology information for mesh. Info stream holds indices and counts to IRdVertexTopologyData stream that holds lists of triangles.

This is a temporary stream, that should be used stored inside system scratch-pad instead of mesh streams. If you want to add stream to mesh, it can be stored in Vertex stream group. Stream is identified by STREAMID_VERTEX_TOPOLOGY_INFO id.

## Member Function Documentation

HRESULT IRdVertexTopologyInfo::GetNumVertices | ( | [out, retval] RtDWORD * | pCount | ) |

Get number of vertices.

Returns:
  pCount [out,retval] Returns value for number of vertices found.

  standard HRESULT processing can be applied to returned value.

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

Set number of vertices.

Parameters:

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

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

## Property Documentation

RtUlong * IRdVertexTopologyInfo::Count([in] RtDWORD dwIndex)`[get]`

Get total number of neighbors for dwIndex-th vertex.

Parameters:

  | dwIndex | [in] Vertex index.

Returns:
  pCount [out,retval] Number of adjacent triangles.

  standard HRESULT processing can be applied to returned value.

RtUlong * IRdVertexTopologyInfo::Index([in] RtDWORD dwIndex)`[get]`

Get index to data stream with list of adjacent triangles.

Parameters:

  | dwIndex | [in] Vertex index.

Returns:
  pPtr [out,retval] Index to data stream.

  standard HRESULT processing can be applied to returned value.