IFClite TypeScript API
    Preparing search index...

    Interface ScreenCornerSnapOptions

    Options of the screen-space corner search. Pass {} for the defaults.

    interface ScreenCornerSnapOptions {
        cornerRadiusPx?: number;
        edgeRadiusPx?: number;
        eligibleModelIndices?: ReadonlySet<number>;
        idleHost?: IdleHost;
        ignoreOcclusion?: boolean;
        markerLimit?: number;
        markerRadiusPx?: number;
        markers?: boolean;
        maxSliceMs?: number;
        occlusionTolerance?: number;
        settleMs?: number;
    }
    Index
    cornerRadiusPx?: number

    Pixel radius within which a corner is snapped to. Default 10.

    edgeRadiusPx?: number

    Pixel radius within which an edge is snapped to when no corner is. Default 6.

    eligibleModelIndices?: ReadonlySet<number>

    Only meshes whose modelIndex is in this set take part (the models eligible for the current pick). Absent: every model. A mesh without a modelIndex counts as index 0.

    idleHost?: IdleHost

    Where idle slices come from. Default: requestIdleCallback, else setTimeout. Tests inject a manual one.

    ignoreOcclusion?: boolean

    Snap to corners and edges hidden behind other geometry (the later X-ray mode). Default false: when the ray hit something, candidates farther along the ray than the hit by more than occlusionTolerance are skipped.

    markerLimit?: number
    markerRadiusPx?: number
    markers?: boolean
    maxSliceMs?: number

    Longest one idle slice of the candidate / grid build runs, in ms (a pick never builds). Default 6.

    occlusionTolerance?: number

    Depth slack, in world units, for the occlusion rule. Default 0.05 + 1 % of the hit distance.

    settleMs?: number

    Quiet time, in ms, the view must have kept still before the idle build starts on it. Until the grid of the current view has pieces, queries answer null and the caller keeps its ray-based snap. Default 120.