@pmndrs/bvh
    Preparing search index...

    Interface BvhPrimitiveRaycastOptions

    interface BvhPrimitiveRaycastOptions {
        accept?: (hit: BvhPrimitiveRaycastHit) => boolean;
        far?: number;
        near?: number;
        threshold?: number;
    }
    Index
    accept?: (hit: BvhPrimitiveRaycastHit) => boolean

    Decides whether a hit counts, after the threshold, near and far (for example a draw range, or a distance in another space). The closest hit of CpuPointsBvh.raycastFirst is the closest that passes.

    far?: number

    Hits farther than this are left out. Default Infinity.

    near?: number

    Hits nearer than this (by BvhPrimitiveRaycastHit.distance) are left out. Default 0.

    threshold?: number

    How far from the ray a primitive may be, in the tree's units: three's Raycaster.params.Points.threshold and params.Line.threshold (default 1, as three's). A point counts when strictly closer, a segment when no farther, as in three.