@pmndrs/reflections
    Preparing search index...

    Interface ThreeBvhTraceScene

    What bvhTraceSceneFromObjects built, with the three objects behind each instance.

    interface ThreeBvhTraceScene {
        materialSources: ({ mesh: Mesh } & HitMaterialSource)[];
        scene: BvhTraceScene;
        sources: { instanceId: number; mesh: Mesh }[];
        materialIdOf(mesh: Mesh, materialIndex?: number): number | undefined;
    }

    Hierarchy (View Summary)

    Index
    materialSources: ({ mesh: Mesh } & HitMaterialSource)[]

    What made each entry of scene.materials: the (first) mesh asked and which of its materials.

    sources: { instanceId: number; mesh: Mesh }[]

    The mesh behind each instance, and its InstancedMesh index (-1 for a plain mesh).

    • The scene.materials entry a hit on mesh with three's face.materialIndex reports (the group's material for a multi-material mesh, else the mesh's), or undefined for a mesh not traced.

      Parameters

      • mesh: Mesh
      • OptionalmaterialIndex: number

      Returns number | undefined