IFClite TypeScript API
    Preparing search index...

    Interface ContactOptions

    interface ContactOptions {
        epsilon?: number;
        leafSize?: number;
        lineLengthM?: number;
        lineSnap?: number;
        planeAngleSnap?: number;
        planeDistSnap?: number;
        planeEps?: number;
        pointAreaM2?: number;
        surfaceAreaM2?: number;
    }

    Hierarchy (View Summary)

    Index
    epsilon?: number

    AABB inflation (world units). Default 0.002 (2 mm).

    leafSize?: number

    BVH leaf size for per-mesh triangle BVHs. Default 8.

    lineLengthM?: number

    Length (m) threshold: ≥ line. Default 0.05.

    lineSnap?: number

    Snap used when hashing intersection-line direction + base point. Default 1e-3.

    planeAngleSnap?: number

    Angular snap for plane normal hashing (unitless, ~1 − cos). Default 1e-3.

    planeDistSnap?: number

    Absolute tolerance for plane coincidence (unit: model-native length). Defaults to scaledDistSnap's f32-ULP floor for this batch's coordinate magnitude, not a fixed constant — see that function's doc.

    planeEps?: number

    Plane-distance tolerance for coplanarity and Möller sign tests. Defaults to scaledPlaneEps's per-axis f32-ULP noise, projected onto each tested plane's own normal, not a fixed constant nor a single max over all axes; see that function's doc.

    pointAreaM2?: number

    Area (m²) below which a contact may still be line or point. Default 0.001.

    surfaceAreaM2?: number

    Area (m²) threshold: ≥ surface. Default 0.01.