IsDuplicate

Checks if two geometry representations are (almost) similar except for a transformation matrix.

Syntax

//   Visual Studio for Windows
public:
bool __declspec(dllexport) __stdcall IsDuplicate(
            __int64             originalOwlInstance,
            __int64             duplicateOwlInstance,
            double              * duplicateMatrix,
            double              epsilon,
            bool                checkMaterial
        );

//   Linux, OS-X and non-Visual Studio Windows solutions
public:
bool IsDuplicate(
            int64_t             originalOwlInstance,
            int64_t             duplicateOwlInstance,
            double              * duplicateMatrix,
            double              epsilon,
            bool                checkMaterial
        );    

Property originalOwlInstance

Size: 64 bit / 8 byte (value)
The handle to the specific instance in the design tree. The instance handle is static within one open model but is most probably different when the same instance is opened in another model. The instance is always exactly of one unique class.

Property duplicateOwlInstance

Size: 64 bit / 8 byte (value)
The handle to the specific instance in the design tree. The instance handle is static within one open model but is most probably different when the same instance is opened in another model. The instance is always exactly of one unique class.

Property duplicateMatrix

Size: 32 bit / 4 byte (reference)
The matrix defining the position of the duplicate instances compared to the original instance if this function returns true.

Property epsilon

Size: 64 bit / 8 byte (value)
The absolute epsilon values within where the values of the compared geometries have to be similar (except for a matrix) to return true.

Property checkMaterial

Size: 8 bit / 1 byte (value)
If true the material definition of both instances are checked to be exactly equal also, i.e. material definitions can be different but resulting colors have to be the same.