Bitbybit Docs
    Preparing search index...

    Interface ShapeExtremum (Models.OCCT)

    One nearest pair of points between two shapes: pointA on the first and pointB on the second, the distance between them, and on each side what the point lies on (a vertex, an edge or a face), that sub-shape's index as shapes.vertex.getVertices, shapes.edge.getEdges or shapes.face.getFaces numbers it, and where on it: on a face u and v as fractions of its UV bounds, as shapes.face.pointOnUV takes them; on an edge u as a fraction of the edge from its start to its end as it runs, and v 0; on a vertex both 0. When one shape lies inside a solid of the other, the one pair is at distance 0 on a vertex of the inner shape, and the index of the side that contains the other is -1.

    interface ShapeExtremum {
        pointA: Point3;
        pointB: Point3;
        distance: number;
        supportA: shapeTypeEnum;
        supportB: shapeTypeEnum;
        indexA: number;
        indexB: number;
        uA: number;
        vA: number;
        uB: number;
        vB: number;
    }
    Index

    Properties

    pointA: Point3
    pointB: Point3
    distance: number
    supportA: shapeTypeEnum
    supportB: shapeTypeEnum
    indexA: number
    indexB: number
    uA: number
    vA: number
    uB: number
    vB: number