IFClite TypeScript API
    Preparing search index...

    Interface DrawingPolygon

    A polygon from section cut (used for hatching)

    interface DrawingPolygon {
        color?: [number, number, number, number];
        entityId: number;
        ifcType: string;
        isCut: boolean;
        isLayerBase?: boolean;
        materialId?: number;
        modelIndex: number;
        polygon: Polygon2D;
        sourceColor?: [number, number, number, number];
    }
    Index
    color?: [number, number, number, number]

    Per-layer fill and identity. color (RGBA 0–1) is present only when the entity cut into

    1 layer (an IfcMaterialLayerSet wall/slab, a frame+glass window), so each layer fills with its own colour; absent for single-material elements (keep the per-ifcType / per-entity fill). materialId is the layer's IfcMaterial (MeshData.materialId) when the mesh has one: same id space as entityId, so a federated session re-homes both and they resolve alike.

    entityId: number

    Source IFC entity expressId

    ifcType: string

    IFC type name

    isCut: boolean

    True if from section cut, false if projection

    isLayerBase?: boolean

    Set on the OPAQUE BASE polygon emitted for a multi-material entity: the entity's full closed cross-section (built from the watertight union of all its layer bands, so it always closes). It is drawn BEHIND the per-layer colour fills in the 3D section overlay as a backstop, so a layer the reconstruction cannot resolve still shows solid cut material instead of a see-through hole. Carried only in Drawing2D.layerBaseCutPolygons (never in cutPolygons), so the flat 2D drawing / export / measure paths never see it.

    materialId?: number
    modelIndex: number

    Model index for multi-model federation

    polygon: Polygon2D

    2D polygon geometry

    sourceColor?: [number, number, number, number]