A3DRiRepresentationItemDeepCopy

A3DStatus A3DRiRepresentationItemDeepCopy(const A3DRiRepresentationItem *pRi, A3DRiRepresentationItem **ppNewRi)
A3DStatus A3DRiRepresentationItemDeepCopy(const A3DRiRepresentationItem* pRi, A3DRiRepresentationItem** ppNewRi)

Create a new representation item by making a deep copy.

Representation item data are copied, except coordinate system and surface are shared for optimization as for the rest of the model. There are some limitations:

  • ID is reset to 0, but topological item ids are kept.
  • Stored links are lost when a representation item is copied independently of the rest of the model. It’s up to the user to create new ones. An entity reference sets to describe the link between a datum plane and a body plane face will be removed.
  • Drawing block is not implemented.
  • Feature data on TfSet are not copied.

Returns

A3D_SUCCESS on success, or an error code on failure