# IRdPrimitiveFactoryState Interface Reference

Inherits IRsObject.

List of all members.

## Public Member Functions
HRESULT | GetNumberOfVertices (RtUlong *pdwVertices)
HRESULT | GetControlPoint (RtUlong dwIndex, RtPrimitiveControlPoint *pCtrlPoint)
HRESULT | AddControlPoint (RtPrimitiveControlPoint *pCtrlPoint)
HRESULT | SetControlPoint (RtUlong index, RtPrimitiveControlPoint *pVertex)

## Detailed Description

IRdPrimitiveFactoryState defines general state used to create primitives.

## Member Function Documentation

HRESULT IRdPrimitiveFactoryState::GetNumberOfVertices | ( | RtUlong * | pdwVertices | ) |

Get number of control points in state vector.

Parameters:

  | pdwVertices | number of vertices

Returns:
  standard HRESULT processing can be applied to returned value

HRESULT IRdPrimitiveFactoryState::GetControlPoint | ( | RtUlong | dwIndex,
|  | RtPrimitiveControlPoint * | pCtrlPoint |
| ) |  |  |

Get control point by index.

Parameters:

  | dwIndex | control point index
  | pCtrlPoint | is filled with control point data.

Returns:
  standard HRESULT processing can be applied to returned value

HRESULT IRdPrimitiveFactoryState::AddControlPoint | ( | RtPrimitiveControlPoint * | pCtrlPoint | ) |

Add new control point.

Parameters:

  | pCtrlPoint | defines working mode to set

Returns:
  standard HRESULT processing can be applied to returned value

HRESULT IRdPrimitiveFactoryState::SetControlPoint | ( | RtUlong | index,
|  | RtPrimitiveControlPoint * | pVertex |
| ) |  |  |

Set work mode for manager.

Parameters:

  | dwMode | defines working mode to set
  | pdwMode | defines nearest working mode that was accepted by the manager.

Returns:
  standard HRESULT processing can be applied to returned value