@openbim/ifc
    Preparing search index...

    Interface SurfaceColour

    The surface colour a mesh is painted with (#449): its representation item's IfcStyledItem, else its styled presentation layer, else its material's IfcMaterialDefinitionRepresentation.

    interface SurfaceColour {
        blue: number;
        green: number;
        red: number;
        source: "item" | "layer" | "material";
        sourceEntity: bigint;
        surfaceStyle: bigint;
        transparency: number | undefined;
    }
    Index
    blue: number
    green: number
    red: number

    Each channel in [0, 1].

    source: "item" | "layer" | "material"

    Which assignment supplied the colour, in that precedence.

    sourceEntity: bigint

    The IfcStyledItem, the layer assignment or the IfcMaterial.

    surfaceStyle: bigint

    The IfcSurfaceStyle.

    transparency: number | undefined

    In [0, 1], 0 opaque; undefined when the file states none (opaque).