Data Structures

struct  A3DCompareInputData
 A3DCompareInputData structure that contains input data of A3DCompareFaces. The two fields m_pOldRiBrepModelPlacements and m_pNewRiBrepModelPlacements must each point to an array of 4x4 matrices (column major). The size of the original array is respectively m_uiOldRiBrepModelsSize and m_uiNewRiBrepModelsSize, each array element represents the matrix as a 16 long A3DDouble array. More...
 
struct  A3DCompareOutputData
 A3DCompareOutputData structure that contains result data of A3DCompareFaces or A3DCompareFacesInBrepModels. More...
 

Functions

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. More...
 
A3DStatus A3DCompareFacesInBrepModels (A3DAsmModelFile *pOldModelFile, A3DAsmModelFile *pNewModelFile, A3DDouble dToleranceInMM, 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. More...
 

Detailed Description

Version
7.0

Function to compare the faces of two groups of A3DRiBrepModel.

See also
A3DCompareFaces
A3DCompareFacesInBrepModels

Function Documentation

◆ A3DCompareFaces()

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
[in]pInputpointer to a A3DCompareInputData that contains input data.
[out]pOutputpointer to a A3DCompareOutputData that contains returned data. It has to be freed by calling again A3DCompareFaces with NULL as input structure pointer.
Returns
A3D_SUCCESS
A3D_INVALID_DATA_STRUCT_NULL
A3D_INVALID_DATA_STRUCT_SIZE
A3D_INVALID_ENTITY_TYPE
A3D_ERROR

◆ A3DCompareFacesInBrepModels()

A3DStatus A3DCompareFacesInBrepModels ( A3DAsmModelFile pOldModelFile,
A3DAsmModelFile pNewModelFile,
A3DDouble  dToleranceInMM,
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
Parameters
[in]pOldModelFilea A3DAsmModelFile containing the first group of A3DRiBrepModel.
[in]pNewModelFilea A3DAsmModelFile containing the second group of A3DRiBrepModel.
[in]dToleranceInMMmaximum distance between two matching faces
[out]pOutputpointer to a A3DCompareOutputData that contains returned data. It has to be freed by calling again A3DCompareFacesInBrepModels with NULL as input A3DAsmModelFile pointers.
Returns
A3D_SUCCESS
A3D_INVALID_DATA_STRUCT_NULL
A3D_INVALID_DATA_STRUCT_SIZE
A3D_INVALID_ENTITY_TYPE
A3D_ERROR