# IRfTriangulatorSet Struct Reference

Inherits IRsObject.

List of all members.

## Public Member Functions
HRESULT | AddEdge (RtTriangulatorSetEdge *pEdge)
HRESULT | Triangulate ()
HRESULT | Clear ()
HRESULT | GetNumTriangles (RtDWORD *pdwNumTriangles)
HRESULT | GetTriangle ([in] RtDWORD dwIndex,[out, retval] RtTriangulatorSetTriangle *pTriangle)

## Detailed Description

IRfTriangulatorSet

WorkSpace triangulator. Add edges and call Triangulate. Then query for created triangles.

## Member Function Documentation

HRESULT IRfTriangulatorSet::AddEdge | ( | RtTriangulatorSetEdge * | pEdge | ) |

Add polygon edge to triangulator.

Parameters:

  `[in]` | pEdge | Edge to add

HRESULT IRfTriangulatorSet::Triangulate | ( |  | ) |

Triangulate added edges.

Returns:
  S_OK if succeeded.

HRESULT IRfTriangulatorSet::Clear | ( |  | ) |

Clear triangulator internal structures.

Returns:
  S_OK

HRESULT IRfTriangulatorSet::GetNumTriangles | ( | RtDWORD * | pdwNumTriangles | ) |

Get number of created triangles.

Returns:
  pdwNumTriangles [out,retval] Filled with number of created triangles

HRESULT IRfTriangulatorSet::GetTriangle | ( | [in] RtDWORD | dwIndex,
|  | [out, retval] RtTriangulatorSetTriangle * | pTriangle |
| ) |  |  |

Get triangle description.

Parameters:

  | dwIndex | [in] Triangle index to retrieve

Returns:
  pTriangle [out, retval] Filled with triangle description.