@pmndrs/bvh
    Preparing search index...

    Interface SahBuildOptions

    interface SahBuildOptions {
        binCount: number;
        intersectionCost: number;
        maxLeafPrimitives: number;
        traversalCost: number;
    }
    Index
    binCount: number

    Bins per axis. 16 is the usual sweet spot between build time and tree quality.

    intersectionCost: number

    Relative cost of testing one primitive.

    maxLeafPrimitives: number

    Most primitives a leaf may hold. The top level uses 1: one instance per leaf.

    traversalCost: number

    Relative cost of visiting a node (two box tests). Only the ratio to intersectionCost matters.