IFClite TypeScript API
    Preparing search index...

    Interface MinDistanceOptions

    Minimum-distance query, exposed here rather than left package-private because every consumer that wants it lives outside this package. The viewer's measure tool needs the exact surface-to-surface distance, and before this it could not reach any of the machinery: triTriDistance sits under math/, which has no export subpath, so a deep import is hard-blocked by ERR_PACKAGE_PATH_NOT_EXPORTED.

    buildMeshBvh / queryMeshCross come with it: a caller measuring one element against several should build each tree once rather than pay for it per query.

    interface MinDistanceOptions {
        earlyExitAtOrBelow?: number;
        leafSize?: number;
    }
    Index
    earlyExitAtOrBelow?: number

    Stop as soon as a distance at or below this is found. Use 0 to stop on first contact when only "do they touch" matters; leave unset for the exact distance.

    leafSize?: number

    Triangles per BVH leaf. Default 8, matching buildMeshBvh.