brepjs API Reference
    Preparing search index...

    Interface DistanceProps

    Distance measurement result including witness points.

    interface DistanceProps {
        distance: number;
        point1: Vec3;
        point2: Vec3;
    }
    Index

    Properties

    distance: number

    The minimum distance between the two shapes.

    point1: Vec3

    Closest point on the first shape.

    point2: Vec3

    Closest point on the second shape.