# IRfVertexMorphSet Interface Reference

Inherits IUnknown.

List of all members.

## Public Member Functions
HRESULT | CompactMorph ([in] IRdVertexStream *pExpanded,[out] IRsGenStream **ppMorph)
HRESULT | ExpandMorph ([in] IRsGenStream *pMorph,[in]RtUlong num_vertices,[out] IRdVertexStream **ppExpanded)
HRESULT | RetargetMorph ([in]IRdVertexMorph *pVertexMorph,[in] IRdMesh *spControlMesh,[in] IRdMesh *pTargetMesh)

## Detailed Description

IRfVertexMorphSet provides helper functions for operations on vertex morphs.

## Member Function Documentation

HRESULT IRfVertexMorphSet::CompactMorph | ( | [in] IRdVertexStream * | pExpanded,
|  | [out] IRsGenStream ** | ppMorph |
| ) |  |  |

Compact morph from its expanded state.

Parameters:

  | pExpanded | [in] Expanded morph delta/vertex stream.
  | ppMorph | [out] Filled with compact form of vertex stream.

HRESULT IRfVertexMorphSet::ExpandMorph | ( | [in] IRsGenStream * | pMorph,
|  | [in] RtUlong | num_vertices,
|  | [out] IRdVertexStream ** | ppExpanded |
| ) |  |  |

Expand vertex morph from its compact state.

Parameters:

  | pMorph | [in] Morph to expand.
  | num_vertices | [in] Number of vertices in target mesh.
  | ppExpanded | [out] Expanded form of vertex morph.

HRESULT IRfVertexMorphSet::RetargetMorph | ( | [in] IRdVertexMorph * | pVertexMorph,
|  | [in] IRdMesh * | spControlMesh,
|  | [in] IRdMesh * | pTargetMesh |
| ) |  |  |

Retarget vertex morph from one mesh to another.

- Geometry identification streams are used to perform retargeting.

NOTE: target reference meshes are kept unchanged.

- You should set them to desired reference meshes or NULL if you are performing final update.

Parameters:

  | pVertexMorph | [in] Morph to retarget.
  | spControlMesh | [in] Target control mesh.
  | pTargetMesh | [in] Target mesh.