# IRdVertexTopologyData Interface Reference

Inherits IDispatch.

List of all members.

## Public Member Functions
HRESULT | GetNumTriangles ([out, retval] RtDWORD *pCount)
HRESULT | SetNumTriangles ([in] RtDWORD dwNumTripleIndices)
## Properties
RtUlong * | Triangle ([in] RtDWORD dwIndex)`[get]`

## Detailed Description

IRdVertexTopologyData is one of two temporary streams that hold vertex topology information for mesh. Data stream holds lists if triangles that are referenced by IRdVertexTopologyInfo stream.

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_DATA id.

## Member Function Documentation

HRESULT IRdVertexTopologyData::GetNumTriangles | ( | [out, retval] RtDWORD * | pCount | ) |

Get number of triangles.

Returns:
  pCount [out,retval] Returns number of triangles/triple indices.

  standard HRESULT processing can be applied to returned value

HRESULT IRdVertexTopologyData::SetNumTriangles | ( | [in] RtDWORD | dwNumTripleIndices | ) |

Set number of triangles.

Parameters:

  | dwNumTripleIndices | [in] Set number of triangles/triple indices.

Returns:
  standard HRESULT processing can be applied to returned value

## Property Documentation

RtUlong * IRdVertexTopologyData::Triangle([in] RtDWORD dwIndex)`[get]`

Get total number of neighbors for dwIndex-th vertex.

Parameters:

  | dwIndex | [in] Neighbor index.

Returns:
  pdwTriangle [out,retval] Triangle index.

  standard HRESULT processing can be applied to returned value.