fast-mesh-wasm
    Preparing search index...

    Interface DistanceFieldDesc

    A signed distance field to add with Scene.addDistanceField.

    interface DistanceFieldDesc {
        maxDistance: number;
        name: string;
        on: MeshHandle;
        sign?: SignMode;
        to: MeshHandle | readonly MeshHandle[];
    }
    Index
    maxDistance: number

    Largest distance computed (inclusive); farther vertices hold Infinity. May be Infinity.

    name: string

    Unique among the fields on on.

    The mesh whose vertices carry the values.

    sign?: SignMode

    Defaults to "auto".

    to: MeshHandle | readonly MeshHandle[]

    The mesh the distances are measured to, or several (at least one, all different, not on): a vertex then holds the smallest signed distance over them (the nearest surface, or the deepest penetration), and Scene.fieldNearest tells which one it came from.