
##########################################
A3DRiRepresentationItemComputeTessellation
##########################################

.. c:function:: A3DStatus A3DRiRepresentationItemComputeTessellation(A3DRiRepresentationItem *pRi, const A3DRWParamsTessellationData *pTessellationParametersData)

   .. rst-class:: sig-pretty-signature
   
      | :c:enum:`~A3DStatus` A3DRiRepresentationItemComputeTessellation(:c:type:`~A3DRiRepresentationItem`\ \* **pRi**\ , *const* :c:struct:`~A3DRWParamsTessellationData`\ \* **pTessellationParametersData**\ )
   
   Calculates the tessellation of a previously created :c:type:`~A3DRiRepresentationItem` with an :c:struct:`~A3DRWParamsTessellationData` parameters.
   
   
      4.0
   
   
   **Return Values**
   
   
      **A3D_INVALID_DATA_STRUCT_SIZE**\ :
   
      **A3D_INVALID_DATA_STRUCT_NULL**\ :
   
      **A3D_SET_INCONSISTENT_EMPTY**\ :
   
      **A3D_INVALID_ENTITY_TYPE**\ :
   
      **A3D_SUCCESS**\ :
   
   
   
      If the :c:type:`~A3DRiRepresentationItem` entity has already been tessellated, the previous tessellation will be replaced by the new one.
   
   
   The input representation item must be one of the following entity types: :c:enumerator:`~kA3DTypeRiBrepModel`\ , :c:enumerator:`~kA3DTypeRiCurve`\ , :c:enumerator:`~kA3DTypeDrawingBlockBasic`\ , or :c:enumerator:`~kA3DTypeDrawingBlockOperator`\ .
   
   For any other entity type, this function returns :c:enumerator:`~A3D_INVALID_ENTITY_TYPE`\ .
   
   **Returns**
   
   
      ``A3D_SUCCESS`` on success, or an error code on failure
   
   




