
##############
A3DTopoBodySet
##############

.. c:function:: A3DStatus A3DTopoBodySet(A3DTopoBody *pBody, const A3DTopoBodyData *pData)

   .. rst-class:: sig-pretty-signature
   
      | :c:enum:`~A3DStatus` A3DTopoBodySet(:c:type:`~A3DTopoBody`\ \* **pBody**\ , *const* :c:struct:`~A3DTopoBodyData`\ \* **pData**\ )
   
   Sets a previously created :c:type:`~A3DTopoBody` with an :c:struct:`~A3DTopoBodyData` structure.
   
   
      2.0
   
   
   **Return Values**
   
   
      **A3D_INVALID_DATA_STRUCT_SIZE**\ :
   
      **A3D_INVALID_DATA_STRUCT_NULL**\ :
   
      **A3D_SET_INCONSISTENT_EMPTY**\ :
   
      **A3D_SUCCESS**\ :
   
   
   
      Because an :c:type:`~A3DTopoBody` entity is an abstract class, you cannot create directly such entity. Instead, use the appropriate derived function (such as :c:func:`~A3DTopoSingleWireBodyCreate` or :c:func:`~A3DTopoBrepDataCreate`\ ) to create a specific topology entity. Then use this function to specify values in the entity base class. For example, this function specifies a value for the :c:member:`A3DTopoBodyData::m_pContext <A3DTopoBodyData.m_pContext>`\ .
   
   
   **Returns**
   
   
      ``A3D_SUCCESS`` on success, or an error code on failure
   
   




