brepjs API Reference
    Preparing search index...

    Interface InterferenceResult

    Result of a pairwise interference check between two shapes.

    interface InterferenceResult {
        hasInterference: boolean;
        minDistance: number;
        pointOnShape1: Vec3;
        pointOnShape2: Vec3;
    }
    Index

    Properties

    hasInterference: boolean

    True if shapes are touching or overlapping (distance within tolerance).

    minDistance: number

    Minimum distance between the shapes. 0 when touching or overlapping.

    pointOnShape1: Vec3

    Closest point on the first shape as [x, y, z].

    pointOnShape2: Vec3

    Closest point on the second shape as [x, y, z].