
###########################
A3DCompareFacesInBrepModels
###########################

.. c:function:: A3DStatus A3DCompareFacesInBrepModels(A3DAsmModelFile *pFirstModelFile, A3DAsmModelFile *pSecondModelFile, A3DDouble dTolerance, A3DCompareOutputData *pOutput)

   .. rst-class:: sig-pretty-signature
   
      | :c:enum:`~A3DStatus` A3DCompareFacesInBrepModels(:c:type:`~A3DAsmModelFile`\ \* **pFirstModelFile**\ , :c:type:`~A3DAsmModelFile`\ \* **pSecondModelFile**\ , :c:type:`~A3DDouble` **dTolerance**\ , :c:struct:`~A3DCompareOutputData`\ \* **pOutput**\ )
   
   Function to compare the faces of two :c:type:`~A3DAsmModelFile`\ .
   
   This is the same as :c:func:`~A3DCompareFaces` except that A3DRiBrepModel will be found by traversing the two :c:type:`~A3DAsmModelFile`\ .
   
   
      7.0
   
   
   
      Comparing two models with different units isn't supported. Such input to the compare function will given irrelevant results.
   
   
   **Return Values**
   
   
      **A3D_SUCCESS**\ :
   
      **A3D_INVALID_DATA_STRUCT_NULL**\ :
   
      **A3D_INVALID_DATA_STRUCT_SIZE**\ :
   
      **A3D_INVALID_ENTITY_TYPE**\ :
   
      **A3D_ERROR**\ :
   
   
   **Parameters**
   
   
      **pFirstModelFile**\ : a :c:type:`~A3DAsmModelFile` containing the first group of A3DRiBrepModel.
   
      **pSecondModelFile**\ : a :c:type:`~A3DAsmModelFile` containing the second group of A3DRiBrepModel.
   
      **dTolerance**\ : maximum distance between two matching faces, in model's unit
   
      **pOutput**\ : pointer to a :c:struct:`~A3DCompareOutputData` that contains returned data. It has to be freed by calling again :c:func:`~A3DCompareFacesInBrepModels` with A3D_NULL_HANDLE as input A3DAsmModelFile pointers.
   
   
   **Returns**
   
   
      ``A3D_SUCCESS`` on success, or an error code on failure
   
   




