brepjs API Reference
    Preparing search index...

    Interface GltfExportOptions

    Options for glTF/GLB export.

    When materials is provided, faces are grouped into separate glTF primitives by material, enabling per-face coloring.

    interface GltfExportOptions {
        materials?: Map<number, GltfMaterial>;
    }
    Index

    Properties

    Properties

    materials?: Map<number, GltfMaterial>

    Map of faceId → material. FaceIds come from ShapeMesh.faceGroups[].faceId.