A3DCompareFacesInBrepModels

A3DStatus A3DCompareFacesInBrepModels(A3DAsmModelFile *pFirstModelFile, A3DAsmModelFile *pSecondModelFile, A3DDouble dTolerance, A3DCompareOutputData *pOutput)
A3DStatus A3DCompareFacesInBrepModels(A3DAsmModelFile* pFirstModelFile, A3DAsmModelFile* pSecondModelFile, A3DDouble dTolerance, A3DCompareOutputData* pOutput)

Function to compare the faces of two A3DAsmModelFile.

This is the same as A3DCompareFaces() except that A3DRiBrepModel will be found by traversing the two 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 A3DAsmModelFile containing the first group of A3DRiBrepModel.

pSecondModelFile: a A3DAsmModelFile containing the second group of A3DRiBrepModel.

dTolerance: maximum distance between two matching faces, in model’s unit

pOutput: pointer to a A3DCompareOutputData that contains returned data. It has to be freed by calling again A3DCompareFacesInBrepModels() with A3D_NULL_HANDLE as input A3DAsmModelFile pointers.

Returns

A3D_SUCCESS on success, or an error code on failure