# IRdTriangleEdgesStream Interface Reference

Inherits IDispatch.

List of all members.

## Public Member Functions
HRESULT | GetNumTriangleEdges ([out, retval] RtDWORD *dwNumTripleIndices)
HRESULT | SetNumTriangleEdges ([in] RtDWORD dwNumTriangleEdges)
## Properties
RtDWORD * | edges ([in] RtDWORD dwIndex)`[get]`
RtDWORD | edges ([in] RtDWORD dwIndex)`[set]`

## Detailed Description

IRdTriangleEdgesStream:

- Stores per triangle edge flags and edge smoothing.
- The stream is part of IRdMesh and is stored in Triangle stream group.
- Stream is identified by STREAMID_TRIANGLES_FACEEDGES id.

## Member Function Documentation

HRESULT IRdTriangleEdgesStream::GetNumTriangleEdges | ( | [out, retval] RtDWORD * | dwNumTripleIndices | ) |

Get number of triangles.

Returns:
  dwNumTripleIndices [out,retval] Returns number of triangles found in stream.

  standard HRESULT processing can be applied to returned value.

HRESULT IRdTriangleEdgesStream::SetNumTriangleEdges | ( | [in] RtDWORD | dwNumTriangleEdges | ) |

Set number of triangles.

Parameters:

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

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

## Property Documentation

RtDWORD * IRdTriangleEdgesStream::edges([in] RtDWORD dwIndex)`[get]`

Get edge flags of dwIndex-th triangle.

Parameters:

  | dwIndex | [in] Triangle index.
  | pVal | [out, retval] Triangle edge flags.

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

RtDWORD IRdTriangleEdgesStream::edges([in] RtDWORD dwIndex)`[set]`

Set edge flags of dwIndex-th triangle.

Parameters:

  | dwIndex | [in] Triangle index.
  | newVal | [in] Triangle edge flags.

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