
###############################
A3DSimplifySurfaceWithAnalytics
###############################

.. c:function:: A3DStatus A3DSimplifySurfaceWithAnalytics(A3DSurfBase const *pSrf, A3DDouble dTol, A3DUns32 uNbRecognizedType, A3DEEntityType const *pOptRecognizedType, A3DSurfBase **pAnalyticSurface, A3DEAnalyticType *peAnalyticType)

   .. rst-class:: sig-pretty-signature
   
      | :c:enum:`~A3DStatus` A3DSimplifySurfaceWithAnalytics(:c:type:`~A3DSurfBase`\ \* **pSrf**\ , :c:type:`~A3DDouble` **dTol**\ , :c:type:`~A3DUns32` **uNbRecognizedType**\ , :c:enum:`~A3DEEntityType`\ \* **pOptRecognizedType**\ , :c:type:`~A3DSurfBase`\ \*\* **pAnalyticSurface**\ , :c:enum:`~A3DEAnalyticType`\ \* **peAnalyticType**\ )
   
   Function to get surface as analytic according to a certain tolerance.
   
   Use :c:func:`~A3DEntityDelete` to delete the analytic surface after using it. Recognized surface type are :ref:`Conic Surface <group__a3d__srfcone>` :ref:`Cylindrical Surface <group__a3d__srfcylinder>` :ref:`Plane Surface <group__a3d__srfplane>` :ref:`Spherical Surface <group__a3d__srfsphere>` :ref:`Toric Surface <group__a3d__srftorus>` If uNbRecognizedType and pOptRecognizedType are defined, :c:func:`~A3DSimplifySurfaceWithAnalytics` recognizes only given types.
   
   
      7.0
   
   
   
      must be deleted by the user.
   
   
   **Return Values**
   
   
      **A3D_SUCCESS**\ :
   
      **A3D_INVALID_ENTITY_NULL**\ :
   
      **A3D_INVALID_ENTITY_TYPE**\ :
   
      **A3D_ERROR**\ :
   
   
   **Parameters**
   
   
      **pSrf**\ : The input surface.
   
      **dTol**\ : Tolerance.
   
      **uNbRecognizedType**\ : Size of array pOptRecognizedType.
   
      **pOptRecognizedType**\ : Optional type of surface we want to recognize.
   
      **pAnalyticSurface**\ : The new analytic surface.
   
   
   **Returns**
   
   
      ``A3D_SUCCESS`` on success, or an error code on failure
   
   




