/** @packageDocumentation * @module Geometry */ import { Id64Array, Id64String } from "@bentley/bentleyjs-core"; import { Matrix4dProps, XYZProps } from "@bentley/geometry-core"; import { GeometryStreamProps } from "./geometry/GeometryStream"; import { GeometryClass } from "./GeometryParams"; /** Information required to request a *snap* to a pickable decoration from the front end to the back end. * @internal */ export interface DecorationGeometryProps { readonly id: Id64String; readonly geometryStream: GeometryStreamProps; } /** Information required to request a *snap* to an element from the front end to the back end. * Includes the viewing parameters so that snap can be relative to the view direction, viewing mode, etc. * @internal */ export interface SnapRequestProps { id: Id64String; testPoint: XYZProps; closePoint: XYZProps; worldToView: Matrix4dProps; viewFlags?: any; snapModes?: number[]; snapAperture?: number; snapDivisor?: number; subCategoryId?: Id64String; geometryClass?: GeometryClass; intersectCandidates?: Id64Array; decorationGeometry?: DecorationGeometryProps[]; } /** Information returned from the back end to the front end holding the result of a *snap* operation. * @internal */ export interface SnapResponseProps { status: number; snapMode?: number; heat?: number; geomType?: number; parentGeomType?: number; hitPoint?: XYZProps; snapPoint?: XYZProps; normal?: XYZProps; curve?: any; intersectCurve?: any; intersectId?: string; } //# sourceMappingURL=Snapping.d.ts.map