@pmndrs/bvh
    Preparing search index...

    Interface BvhClosestPoint<Point>

    What CpuMeshBvh.closestPointToPoint and CpuMeshBvh.closestPointToGeometry write: three-mesh-bvh's HitPointInfo. Point is a BvhVector3 here, a three Vector3 in @pmndrs/bvh/three.

    interface BvhClosestPoint<Point extends BvhVector3Like = BvhVector3Like> {
        distance: number;
        faceIndex: number;
        point: Point;
    }

    Type Parameters

    Index
    distance: number
    faceIndex: number

    The triangle's original index (in the input's index order).

    point: Point

    The closest point, in the tree's space (for target2 of closestPointToGeometry, the other geometry's).