UNPKG

@itwin/clash-detection-client

Version:

Clash Detection client for the iTwin platform

46 lines 1.79 kB
/** The details for a clash between two elements */ export interface ClashDetails { /** The type of clash detected - possible values: Collision, Clearance, Touching, Not Initialized. */ clashType: string; /** When the clash type is Clearance, the value is returned in meters. Otherwise -1 is returned. */ clearance: number; /** The unique id of element A. */ elementAId: string; /** The display label of element A. */ elementALabel: string; /** The zero-based index used to lookup the element A category in the categoryList. */ elementACategoryIndex: number; /** The zero-based index used to lookup the element A model in the modelList. */ elementAModelIndex: number; /** The unique id of element B. */ elementBId: string; /** The display label of element B. */ elementBLabel: string; /** The zero-based index used to lookup the element B category in the categoryList. */ elementBCategoryIndex: number; /** The zero-based index used to lookup the element B model in the modelList. */ elementBModelIndex: number; /** The clash center point. */ center: ClashDetectionResultCenter; /** The array of zero-based indices used to lookup the suppressing rules. */ suppressingRuleIndexArray: number[]; } export interface ClashDetectionResultCenter { x: number; y: number; z: number; } export interface ReferenceIdList { /** Reference id. */ id: string; /** Reference display name. */ displayName: string; } /** Get Result API response. */ export interface ResponseFromGetResult { result: ClashDetails[]; modelList: ReferenceIdList[]; categoryList: ReferenceIdList[]; suppressionRuleList: ReferenceIdList[]; } //# sourceMappingURL=ResultInterfaces.d.ts.map