@pmndrs/bvh
    Preparing search index...

    Interface BvhThreeSource

    The three object behind one instance. BvhHit.instance (and CpuHit.instanceIndex) indexes these.

    interface BvhThreeSource {
        group: number;
        instanceId: number;
        materialIndex: number;
        mesh: number;
        object: Mesh;
        static: boolean;
    }
    Index
    group: number

    The geometry group, or -1: for a mesh with one material, and for a folded multi-material mesh (multiMaterial: 'triangles'), which holds every group (threeGroupOf gives a hit triangle's).

    instanceId: number

    The instance of an InstancedMesh or BatchedMesh, or -1 for a plain mesh.

    materialIndex: number

    The group's materialIndex, or -1 (see group; threeMaterialOf gives a hit triangle's three material).

    mesh: number

    Position of this instance's mesh in BvhThreeScene.meshes.

    object: Mesh
    static: boolean