brepjs API Reference
    Preparing search index...

    Interface GltfFace

    A meshed face as presented to a MaterialFn — its stable id and the centroid of its triangles in part coordinates (Z-up, mm).

    interface GltfFace {
        center: [number, number, number];
        faceId: number;
    }
    Index

    Properties

    Properties

    center: [number, number, number]

    Centroid of the face's vertices, in part (Z-up, mm) coordinates.

    faceId: number

    Stable face identifier — matches ShapeMesh.faceGroups[].faceId.