IsDuplicate

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

Syntax

public const string EngineDLL = @"engine.dll";[DllImport(EngineDLL, EntryPoint = "IsDuplicate")]
public static extern byte IsDuplicate(Int64 originalOwlInstance, Int64 duplicateOwlInstance, out double duplicateMatrix, double epsilon, byte 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: 64 bit / 8 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.