Compare faces

Types

A3DCompareInputData

A3DCompareOutputData

Functions

A3DStatus

A3DCompareFaces

A3DStatus

A3DCompareFacesInBrepModels

Detailed Description

group a3d_CompareFaces

Function to compare the faces of two groups of A3DRiBrepModel.

See also

A3DCompareFaces

Version

7.0

Function Documentation

A3DStatus A3DCompareFaces(A3DCompareInputData *pInput, A3DCompareOutputData *pOutput)

Function to compare the faces of two groups of A3DRiBrepModel.

This function will detect if every points in a face of the first group (referenced as group of the old faces) can be projected to one of the faces of the other group (referenced as group of the new faces) within the given tolerance. This is useful for exemple to understand what has changed in a part between two versions: a hole has been added, an edge has been blended.

Version

7.0

Parameters
Return values
  • A3D_SUCCESS

  • A3D_INVALID_DATA_STRUCT_NULL

  • A3D_INVALID_DATA_STRUCT_SIZE

  • A3D_INVALID_ENTITY_TYPE

  • A3D_ERROR

Returns

A3D_SUCCESS in case of success or an error code

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.

Version

7.0

Warning

Comparing two models with different units isn’t supported. Such input to the compare function will given irrelevant results.

Parameters
  • pFirstModelFile[in] a A3DAsmModelFile containing the first group of A3DRiBrepModel.

  • pSecondModelFile[in] a A3DAsmModelFile containing the second group of A3DRiBrepModel.

  • dTolerance[in] maximum distance between two matching faces, in model’s unit

  • pOutput[out] pointer to a A3DCompareOutputData that contains returned data. It has to be freed by calling again A3DCompareFacesInBrepModels with NULL as input A3DAsmModelFile pointers.

Return values
  • A3D_SUCCESS

  • A3D_INVALID_DATA_STRUCT_NULL

  • A3D_INVALID_DATA_STRUCT_SIZE

  • A3D_INVALID_ENTITY_TYPE

  • A3D_ERROR

Returns

A3D_SUCCESS in case of success or an error code