fast-mesh-wasm
    Preparing search index...

    Interface MeshDistance

    The closest pair between two meshes from Scene.meshDistance, in world coordinates.

    interface MeshDistance {
        a: Vec3;
        b: Vec3;
        distance: number;
        triangleA: number;
        triangleB: number;
    }
    Index
    a: Vec3

    The point on the first mesh.

    b: Vec3

    The point on the second mesh.

    distance: number

    0 when the surfaces touch or intersect.

    triangleA: number

    The first mesh's triangle slot that a lies on.

    triangleB: number

    The second mesh's triangle slot that b lies on.