
###############################
A3DSurfBaseWithDomainGetAsNurbs
###############################

.. c:function:: A3DStatus A3DSurfBaseWithDomainGetAsNurbs(const A3DSurfBase *pSrf, const A3DDomainData *pOptDomain, A3DDouble dTolerance, A3DBool bUseSameParameterization, A3DSurfNurbsData *pData)

   .. rst-class:: sig-pretty-signature
   
      | :c:enum:`~A3DStatus` A3DSurfBaseWithDomainGetAsNurbs(*const* :c:type:`~A3DSurfBase`\ \* **pSrf**\ , *const* :c:struct:`~A3DDomainData`\ \* **pOptDomain**\ , :c:type:`~A3DDouble` **dTolerance**\ , :c:type:`~A3DBool` **bUseSameParameterization**\ , :c:struct:`~A3DSurfNurbsData`\ \* **pData**\ )
   
   Populates the :c:struct:`~A3DSurfNurbsData` structure from any type of :c:type:`~A3DSurfBase` and an optional restriction domain :c:struct:`~A3DDomainData`\ .
   
   
      14.2
   
   
   This structure must be freed with :c:func:`~A3DSurfNurbsGet` call.
   
   
      This function can modify the parameterization for surface. You must process related entities accordingly.
   
   
   
      If pOptDomain is defined it must be contained by surface domaine.
   
   
   
      See note on Tolerance explanation at :c:func:`~A3DCrvBaseGetAsNurbs` definition.
   
   
   
      This function can be called with any type of curve.
   
   
   **Return Values**
   
   
      **A3D_INVALID_DATA_STRUCT_SIZE**\ :
   
      **A3D_INVALID_DATA_STRUCT_NULL**\ :
   
      **A3D_INTERVAL_INCONSISTENT_DATA**\ :
   
      **A3D_SRF_NURBS_TOO_TINY_TOLERANCE**\ :
   
      **A3D_SRF_INVALID_PARAMETERS**\ :
   
      **A3D_SUCCESS**\ :
   
   
   **Returns**
   
   
      ``A3D_SUCCESS`` on success, or an error code on failure
   
   




