IFClite TypeScript API
    Preparing search index...

    Interface CutPolygon2D

    interface CutPolygon2D {
        color?: [number, number, number, number];
        expressId: number;
        hatch?: {
            angleRad?: number;
            patternId: number;
            secondaryAngleRad?: number;
            spacingPx?: number;
            strokeColor?: [number, number, number, number];
            widthPx?: number;
        };
        ifcType: string;
        modelIndex?: number;
        polygon: {
            holes: { x: number; y: number }[][];
            outer: { x: number; y: number }[];
        };
    }
    Index
    color?: [number, number, number, number]

    Optional per-polygon RGBA (0–1). When present, this cap polygon fills with this colour (an IfcMaterialLayerSet wall/slab layer, or a frame+glass window part) instead of the uniform cap fill. Absent ⇒ uniform cap style + per-ifcType fallback, unchanged.

    expressId: number
    hatch?: {
        angleRad?: number;
        patternId: number;
        secondaryAngleRad?: number;
        spacingPx?: number;
        strokeColor?: [number, number, number, number];
        widthPx?: number;
    }

    Optional per-polygon hatch. When present, overrides the upload's capStyle hatch fields for this polygon only. Absent ⇒ unchanged (capStyle applies).

    Type Declaration

    • OptionalangleRad?: number

      Defaults to capStyle.angleRad.

    • patternId: number

      Same ids as Section2DOverlayCapStyle.patternId (0 = none).

    • OptionalsecondaryAngleRad?: number

      Defaults to capStyle.secondaryAngleRad.

    • OptionalspacingPx?: number

      Defaults to capStyle.spacingPx.

    • OptionalstrokeColor?: [number, number, number, number]

      Hatch line colour (RGBA 0–1); defaults to capStyle.strokeColor.

    • OptionalwidthPx?: number

      Defaults to capStyle.widthPx.

    ifcType: string
    modelIndex?: number

    Model the element belongs to in a federation; scopes CapHighlight entries. Absent ⇒ matched by id alone.

    polygon: {
        holes: { x: number; y: number }[][];
        outer: { x: number; y: number }[];
    }